The ColorModeSwitch component extends the Switch component, so you can pass any property such as color, size, etc.
{
"wait": "Loading client-side content..."
}| Prop | Default | Type |
|---|---|---|
as | 'div' | anyThe element or component this component should render as. |
loading | false | boolean When |
size | 'md' | "md" | "xs" | "sm" | "lg" |
color | 'air-primary' | "air-primary" | "air-primary-success" | "air-primary-alert" | "air-primary-warning" | "air-primary-copilot" |
autofocus | false | true | "true" | "false" | |
disabled | boolean When | |
name | stringThe name of the field. Submitted with its owning form as part of a name/value pair. | |
label | string | |
defaultValue | boolean The state of the switch when it is initially rendered. Use when you do not need to control its state. | |
required | boolean When | |
id | string | |
value | stringThe value given as data when submitted with a | |
description | string | |
loadingIcon | icons.refresh | IconComponentThe icon when the |
b24ui | { root?: ClassNameValue; base?: ClassNameValue; container?: ClassNameValue; thumb?: ClassNameValue; icon?: ClassNameValue; wrapper?: ClassNameValue; label?: ClassNameValue; description?: ClassNameValue; } |