- Docs
- Components
- Type
Text
Running text, labels and inline code, on the type roles: a size, a weight and a tone from the tokens.
- Import
- @qeetrix/react
- Status
- StableSince 0.0.2
- Renders
<span>Server-rendered- Tested
- WCAG 2.2 AAaxe on every pull request
01
Sizes and weights
The body roles: sm 12/16, md 14/20 (by default), lg 16/24; regular, medium or semibold.
Priya Sharmapriya@acme.in · EngineeringLast signed in 2 minutes ago
<Text size="lg" weight="semibold">Priya Sharma</Text>
<Text>priya@acme.in · Engineering</Text>
<Text size="sm" tone="subtle">Last signed in 2 minutes ago</Text>02
Tones
A text colour from the tokens; unset, it inherits. inverse for a dark surface.
Priya Sharma signed in2 minutes ago · Bengaluruevt_4812Qeet ProDirectory syncedExpires in 9 daysSign-in blocked3 invitations waiting
Viewing as Rahul Verma
<Text tone="subtle">2 minutes ago · Bengaluru</Text>
<Text tone="danger">Sign-in blocked</Text>03
Code and IDs
mono: Fira Code at the same size, for an ID, a key or a command.
Priya's ID is usr_0001.
<Text mono size="sm">usr_0001</Text>04
Truncation
truncate: one line with an ellipsis, or a number of lines.
People who can sign in to Acme Pvt Ltd's applications, synced from Azure AD.People who can sign in to Acme Pvt Ltd's applications, synced from Azure AD four minutes ago, with passkeys required for every admin.
<Text truncate>…</Text>
<Text truncate={2}>…</Text>05
A paragraph
A <span> by default; render a <p> for a paragraph.
Passkeys can't be phished: there's no password to type into the wrong page. Turn them on for admins first.
<Text render={<p />}>…</Text>