UI kit reference
components/SwitchGlyph
import { … } from 'zidane-ui'ui/src/components/SwitchGlyph.tsx
Components#
SwitchGlyphComponent#
Renders the on/off glyph: a track with a thumb. It is decoration only (aria-hidden); the
control around it owns the state and the semantics.
function SwitchGlyph(props: SwitchGlyphProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | SwitchGlyphProps | Component props. |
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| className? | string | Extra classes on the root element. |
| on | boolean | Whether the switch is on: the accent fill with the thumb at the right. |
| size? | 'sm' | 'md' | Glyph size: |
| style? | CSSProperties | Inline styles on the root element, merged after the component's own. |
Interfaces#
SwitchGlyphPropsInterface#
Props for SwitchGlyph.
interface SwitchGlyphPropsProperties
| Name | Type | Description |
|---|---|---|
| className? | string | Extra classes on the root element. |
| on | boolean | Whether the switch is on: the accent fill with the thumb at the right. |
| size? | 'sm' | 'md' | Glyph size: |
| style? | CSSProperties | Inline styles on the root element, merged after the component's own. |