@gechiui/components
Version:
UI components for GeChiUI.
20 lines (16 loc) • 319 B
JavaScript
/**
* GeChiUI dependencies
*/
import { swatch } from '@gechiui/icons';
/**
* Internal dependencies
*/
import Icon from '../icon';
function Swatch( { fill } ) {
return fill ? (
<span className="components-swatch" style={ { background: fill } } />
) : (
<Icon icon={ swatch } />
);
}
export default Swatch;