UNPKG

@yandex/ui

Version:

Yandex UI components

15 lines (14 loc) 571 B
import React from 'react'; import { Text } from '@yandex-lego/components/Text/Text.bundle/desktop'; export var Color = function () { return (React.createElement(React.Fragment, null, [ 'primary', 'brand', 'inverse', 'promo', 'secondary', 'ghost', 'disable', 'warning', 'success', 'alert', ].map(function (color) { return (React.createElement(Text, { as: "div", key: color, typography: "control-xl", weight: "light", color: color, style: { backgroundColor: color === 'inverse' ? '#000' : undefined } }, color + " color")); }))); };