Skip to content

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.

TypeScript
function ZidaneMark(props: ZidaneMarkProps): Element
Parameters
NameTypeDescription
propsZidaneMarkProps

Component props.

Element
ZidaneMark props
NameTypeDefaultDescription
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 working label from useLabels.

size?number16

Width and height in pixels. Small marks draw fewer, wider bands.

speed?number1.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. inherit follows the surrounding text colour.

ui/src/components/ZidaneMark.tsx:80

Interfaces#

ZidaneMarkPropsInterface#

Props for ZidaneMark.

TypeScript
interface ZidaneMarkProps
ZidaneMarkProps properties
NameTypeDefaultDescription
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 working label from useLabels.

size?number16

Width and height in pixels. Small marks draw fewer, wider bands.

speed?number1.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. inherit follows the surrounding text colour.

ui/src/components/ZidaneMark.tsx:27