/
githubmirror
/
carbon
Обзор
Документация
Войти
/
githubmirror
/
carbon
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
4.7.21
components/WindowPointer.js
22 строки
552 B
Jake Dexheimer
minor aesthetic tweaks
28 ноя 2018, 02:29
28 ноя 2018, 02:29
479e3b7
Код
Авторство
О чём код?
import React from 'react' export default ({ fromLeft, fromRight, color = '#fff' }) => ( <div> <div className="window-pointer" /> <style jsx> {` .window-pointer { width: 0px; height: 0px; border-style: solid; border-width: 0 5px 6px 5px; border-color: transparent transparent ${color} transparent; position: absolute; top: -8px; left: ${fromLeft || 'initial'}; right: ${fromRight || 'initial'}; } `} </style> </div> )