Skip to content

Text Liquid Fill

Pro

Liquid fills the letters up to a level, so the text shows a percent, and the liquid sloshes as the page scrolls.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 15, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Text Liquid Fill needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
42
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Set the value and write it in the text.

goal-heading.tsx

TextLiquidFill

<div>
PropTypeDefaultDescription
classNamestring—
valueRequirednumber—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.
sloshbooleantrueTrue (default): the liquid sloshes with the page scroll speed.
localestring—The BCP 47 locale of the text, for the case of text-transform on the canvas. Default: the DisplayLocaleProvider locale, else "en-US".
childrenReactNode—A string, or the parts TextLiquidFillContent and TextLiquidFillCanvas.
From Base UIMeter.RootBase UI docs
aria-valuetextstring—A string value that provides a user-friendly name for aria-valuenow, the current value of the meter.
formatNumberFormatOptions—Options to format the value.
getAriaValueText—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>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TextLiquidFillCanvas

<canvas>
PropTypeDefaultDescription
...props<canvas> attributes—Every other attribute goes to the <canvas>, with a ref.
  • Set value from 0 to 100.
  • Use slosh to let the liquid move on scroll and change.

Built with

Installs with Text Liquid Fill

Components
Meter
  1. AddedText Liquid Fill, with Meter.
Open the release