Color picker

The browser's colour chooser with a swatch that shows any CSS colour.

Example

tsx
<ColorPicker defaultValue="#2563eb" aria-label="Accent colour" />

Usage

Pages are built on the server: import the tags from @dash/server and return the tree. The browser runtime draws it.
tsx
import { ColorPicker } from "@dash/server";

Props

ColorPickerProps

Also takes everything Omit<InputProps, "type" | "value" | "defaultValue"> does.
Prop
Type
Description
valuestring
defaultValuestring
On this page