Color Showcase

Color

Color Null

null

Component Documentation

Component Name

Color

Builder Function Name

create_color_manager

Description

displays a color swatch, optionally with details about its oklch components

Use like example

Config

PropertyTypeDefaultDescription
valobject

object with color properties { l, c, h, o, is_dark_theme_invert }

is_show_detailsboolean

false

whether the color's numeric details are shown

sizenumber

3

the width/height in rem of the color preview

border_radiusnumber

0.5

border radius in rem for the color preview box

Methods

MethodDescriptionParametersReturns
No methods found

Returned Properties

PropertyTypeDescription
idstring

unique id for this color swatch instance

valobject

the color object used to generate the final color

colorstring

the resulting color as an oklch() or transparent if null

is_show_detailsboolean

true if color details (l, c, h, o, is_dark_theme_invert) are shown

sizenumber

the size in rem of the color preview

border_radiusnumber

the border radius in rem for the color box

icon
Sponsored byContibase