Components
ColorPicker
ColorPicker wraps the native color input while keeping SwiftUI-style label and value semantics.
ColorPicker wraps the native color input while keeping SwiftUI-style label and value semantics.
Examples
Default
Preview unavailable for this example in the static docs build.
Show code
function DemoColorPicker() {
const [value, setValue] = useState('#0a84ff')
return <ColorPicker label="Accent" onChange={setValue} value={value} />
}API
| Prop | Type | Required | Description |
|---|---|---|---|
label | string | Yes | Accessible label shown next to the color control. |
value | string | Yes | Current color value. |
onChange | (value: string) => void | Yes | Called when the selected color changes. |
Inherits additional props from IBaseComponent.
Overview
ColorPicker wraps the native color input while keeping SwiftUI-style label and value semantics.
Color
Color is a view that displays a solid color. Color is used to display color swatches, backgrounds, and visual color indicators.
ConfirmationDialog
ConfirmationDialog presents a stack of actions that asks the user to confirm an intent. It aligns with SwiftUI's `confirmationDialog` mental model while using web-native dialog semantics.