UNPKG

@gechiui/components

Version:
28 lines (24 loc) 469 B
import { createElement } from "@gechiui/element"; /** * GeChiUI dependencies */ import { swatch } from '@gechiui/icons'; /** * Internal dependencies */ import Icon from '../icon'; function Swatch(_ref) { let { fill } = _ref; return fill ? createElement("span", { className: "components-swatch", style: { background: fill } }) : createElement(Icon, { icon: swatch }); } export default Swatch; //# sourceMappingURL=index.js.map