Skip to main content
PROYECTOVIVIANA

ColorSwatch

The props declared for ColorSwatch, generated from the types @proyecto-viviana/ui ships.

Import

import { ColorSwatch } from "@proyecto-viviana/ui";

Props

Props for ColorSwatch in @proyecto-viviana/ui
PropTypeDefaultDescription
size'S' | 'M' | 'L' | 'XS'—The size of the color swatch.
rounding'default' | 'none' | 'full'—Corner rounding for the color swatch.
stylesStylesPropWithHeight—Spectrum-defined generated classes.
UNSAFE_classNamestring | UnsafeClassName—Additional CSS class name. Use only as a last resort.
UNSAFE_styleJSX.CSSProperties—Additional inline styles. Use only as a last resort.
classstring—Additional CSS class name.
slotstring | false—A slot name for the component. HTML `slot` may be `false` to omit. solidaria-components
aria-describedbystring—ID of element that describes the swatch. solidaria-components
aria-detailsstring—ID of element that provides detailed information about the swatch. solidaria-components
aria-labelstring—Accessible label for the swatch. solidaria-components
aria-labelledbystring—ID of element that labels the swatch. solidaria-components
colorstring | Color—The color to display. solidaria-components
colorNamestring—Localized color name override. solidaria-components

Declared in packages/viviana-ui/src/color/index.tsx.

Props marked solidaria or solidaria-components come from the headless layer underneath and behave the same in both registers. Components that wrap a DOM element also accept that element's standard attributes, which are left out here on purpose — listing them would bury the props that are actually ours.