Skip to content
Pebble Pro is here at $49 one timeSee what’s included ↗
Pebble
ComponentsDocsMCPPricing
⌕ Find a component↗Log in
All components 673

Categories

Core inputs & forms46Buttons & actions33Navigation36Overlays & feedback49Data display33Charts & data viz40Cards & layout43Marketing blocks38App shells & pages37AI interfaces40Text & typography effects33Backgrounds & visual effects38Motion & transitions32Numbers & counters32Media34E-commerce333D & interactive36Themed sets40
Start with the essentials.Installation guide ↗Connect your agent ↗
← All componentsText & typography effects

Fit Text

Display text that scales to exactly fill its container width, with balanced multi-line mode, refitting on resize and font load.

Preview

Revenue, Q3

$1,284,500 $1,284,500

One line, exactly the card's width.

Balanced on three lines

Small teams, steady releases, fewer late nights. Smallteams,steadyreleases,fewerlatenights.

Drag the corner

99.98% 99.98%

It refits as the box resizes.

Install

Pro source requires Pebble Pro. Try the full preview above.

Props

PropTypeDefaultDescription
textstring—Text that fills the container width.
linesnumber1Balance the words over this many lines, then fill the width.
min / maxnumber12 / 480Font size clamp in px.
fallbackSizestring"3rem"Size before measuring (server render, first paint).
as"div" | "h1" | "h2" | "h3" | "p""div"Element to render.

Pro component

Try the full preview above. Editable source and build guides require Pebble Pro.

Buy Pebble Pro — $49How source access works ↗
Pebble

Small details.
Better interfaces.

React components to explore, make your own, and build on.

Library

  • Components
  • Installation
  • Pricing

Resources

  • For agents
  • About
  • Support

Legal

  • License
  • Terms
  • Privacy
  • Final sale

Built by Pebble

A product of Praxys Solutions LLC ↗

Pebble Pro is live

$49 one time, lifetime updates ↗