API Reference > ui-components > Color > ColorSwatch ColorSwatch Function Beta ColorSwatch Functional component displays a color swatch in a button ColorSwatch(props: ColorSwatchProps): Element Parameter Type Description props ColorSwatchProps Returns - Element Defined in ui/components/src/ui-components/color/Swatch.tsx Line 31 Last Updated: 11 June, 2024