/
kaws
/
ui-kit-ce
Обзор
Документация
Войти
/
kaws
/
ui-kit-ce
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/common/src/CloseButton/IconClose.tsx
28 строк
721 B
Денис Святовец
feat(drawer,modal,notification,theme): стандартизированы токены closeButton
15 апр 2024, 16:33
15 апр 2024, 16:33
ba7ad54
Код
Авторство
О чём код?
import * as React from 'react' export interface Props extends React.SVGAttributes<SVGElement> {} const svgPath = 'M17.996 7.49846L16.4973 6L11.9983 10.5003L7.49846 6.00394L6 7.50261L10.4989 12.0002L6.00743 16.4929L7.50251 18L11.9991 13.4999L16.4929 17.9925L18 16.4974L13.4985 11.9994L17.996 7.49846Z' // eslint-disable-line max-len // TODO: replace with new icon later export const IconClose: React.FC<Props> = ({ width = 24, height = 24, fill = 'currentColor', ...props }) => { return ( <svg {...props} width={width} height={height} fill={fill} viewBox="0 0 24 24" > <path d={svgPath} fillRule="evenodd" /> </svg> ) } IconClose.displayName = 'IconClose'