components/ZidaneMark
import { … } from 'zidane-ui'ui/src/components/ZidaneMark.tsx
Components#
ZidaneMarkComponent#
Renders the zidane mark, its bands flowing while speed is above 0 and motion is on.
function ZidaneMark(props: ZidaneMarkProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | ZidaneMarkProps | Component props. |
Returns
ElementProps
| Name | Type | Default | Description |
|---|---|---|---|
| className? | string | Extra classes on the root. | |
| decorative? | boolean | Hidden from assistive tech, for a mark inside an element that names the state itself. | |
| label? | string | Accessible name and tooltip. Defaults to the | |
| size? | number | 16 | Width and height in pixels. Small marks draw fewer, wider bands. |
| speed? | number | 1.2 | Loops per second; 0 holds still. |
| style? | CSSProperties | Inline styles on the root element, merged after the component's own. | |
| tone? | Tone | 'accent' | Colour of the bands. |
Interfaces#
ZidaneMarkPropsInterface#
Props for ZidaneMark.
interface ZidaneMarkPropsProperties
| Name | Type | Default | Description |
|---|---|---|---|
| className? | string | Extra classes on the root. | |
| decorative? | boolean | Hidden from assistive tech, for a mark inside an element that names the state itself. | |
| label? | string | Accessible name and tooltip. Defaults to the | |
| size? | number | 16 | Width and height in pixels. Small marks draw fewer, wider bands. |
| speed? | number | 1.2 | Loops per second; 0 holds still. |
| style? | CSSProperties | Inline styles on the root element, merged after the component's own. | |
| tone? | Tone | 'accent' | Colour of the bands. |