Text
The typographic workhorse — every size and tone in the system, one prop each. Plus Heading and Code.
Loading documentation…
Production
acme-api · fra1 · 128 MB
Last deployed 4 minutes ago
Almost everything in an application is 14px. Hierarchy is carried by weight
and colour, not by size — which is why Text has a tone and a weight
prop, and why its size prop is the one you reach for least.
text-heyo-default is the thing being acted on. text-heyo-subtle is
context.strong
default
subtle
inactive
success
warning
danger
12, 13, 14, 16, 18, 22 and 28px. The jump from base to lg is already a
statement; 2xl and 3xl are for a page title or a number, not for a
paragraph.
xs — 12px
sm — 13px
base — 14px
lg — 16px
xl — 18px
2xl — 22px
3xl — 28px
mono switches to the monospace stack — identifiers, hashes, regions.
truncate clips to one line with an ellipsis, and sets the min-width: 0 that
makes truncation work inside a flex row.
dpl_8f21c3d9
A single line that is far too long to fit in the space it has been given
Heading renders h1 to h6 with the right size for the level. as on
Text does the same job when you need a different element without a heading's
semantics.
Inline code on the recessed surface. It pairs with Kbd for
shortcut documentation and with CodeBlock for
anything longer than a phrase.
Run bun add @heyo-sh/heyo-ui to install.
It defaults to base (14px).
It defaults to default.
It defaults to normal.
Switches to the monospace stack.
One line with an ellipsis, including the min-width: 0 it needs.
Render a different element: as="span", as="label".
The heading level and its size. It defaults to 2.
Inline code, on the recessed surface.
The cva definition, for anything that needs the same type without the
component.