Set the value and write it in the text.
goal-heading.tsx
TextLiquidFill
<div>| Prop | Type | Default | Description | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | ||||||||
| value | number | — | How full the text is, 0 to 100. A change rises or falls with a wave. | |||||||
| trigger | "mount""view" | "view" | When it fills from empty: view (default) the first time it shows; mount at once. After it, each new value moves from the shown level. | |||||||
| slosh | boolean | true | True (default): the liquid sloshes with the page scroll speed. | |||||||
| locale | string | — | The BCP 47 locale of the text, for the case of text-transform on the canvas. Default: the DisplayLocaleProvider locale, else "en-US". | |||||||
| children | ReactNode | — | A string, or the parts TextLiquidFillContent and TextLiquidFillCanvas. | |||||||
From Base UIMeter.RootBase UI docs | ||||||||||
| aria-valuetext | string | — | A string value that provides a user-friendly name for aria-valuenow, the current value of the meter. | |||||||
| format | NumberFormatOptions | — | Options to format the value. | |||||||
| get | — | A function that returns a string value that provides a human-readable text alternative for aria-valuenow, the current value of the meter. | ||||||||
| ||||||||||
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. | |||||||
TextLiquidFillContent
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TextLiquidFillCanvas
<canvas>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <canvas> attributes | — | Every other attribute goes to the <canvas>, with a ref. |
Built with
Installs with Text Liquid Fill
- Components
- Meter









