UI kit reference
motion/title-text
import { … } from 'zidane-ui'ui/src/motion/title-text.tsx
Components#
TitleTextComponent#
Renders a title that writes itself in when it changes: the new title appears word by word,
each word sharpening out of a soft blur. It stays inline text, so a truncating parent keeps
working. The first render, a change of scope and reduced or off motion show the title as
it is.
function TitleText(props: TitleTextProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | TitleTextProps | Component props. |
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| display? | ReactNode | What to show for it, when not the plain text. |
| scope? | unknown | What the title belongs to (a session id): a change of scope never animates. |
| text | string | The title; a change of it is what animates. |
Interfaces#
TitleTextPropsInterface#
Props for TitleText.
interface TitleTextPropsProperties
| Name | Type | Description |
|---|---|---|
| display? | ReactNode | What to show for it, when not the plain text. |
| scope? | unknown | What the title belongs to (a session id): a change of scope never animates. |
| text | string | The title; a change of it is what animates. |