Usage
The ColorModeButton component extends the Button component, so you can pass any property such as color, size, etc.
{
"wait": "Loading client-side content..."
}The button defaults to
color="air-tertiary-no-accent".Examples
With fallback slot
As the button is wrapped in a ClientOnly component, you can pass a fallback slot to display a placeholder while the component is loading.
{
"wait": "Loading client-side content..."
}