/
githubmirror
/
carbon
Обзор
Документация
Войти
/
githubmirror
/
carbon
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
4.9.2
components/WindowPointer.js
24 строки
622 B
Michael Fix
Upgrade next (#1124)
28 окт 2020, 05:04
Не верифицирован
28 окт 2020, 05:04
eb5334b
Код
Авторство
О чём код?
import React from 'react' export default function WindowPointer({ fromLeft, fromRight, color = '#fff' }) { return ( <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> ) }