Primitive / Atomstable
Text
Body text primitive for default, muted, and glass-highlighted copy.
@glinui/uiComponent: text
Installation
Install from the package for shared ownership or from the registry for copy-paste control.
Package Manager
pnpm add @glinui/ui @glinui/tokensRegistry
pnpm dlx @glinui/cli@latest add textUsage
Default body copy.
Muted supporting copy.
Glass highlighted note.
TSX
1import { Text } from "@glinui/ui"23export function Demo() {4 return (5 <div className="space-y-2">6 <Text>Default body copy.</Text>7 <Text variant="muted">Muted supporting copy.</Text>8 <Text variant="glass">Glass highlighted note.</Text>9 </div>10 )11}
Accessibility
- Renders semantic paragraph text by default.
Reduced Motion
No motion-dependent behavior.
API Reference
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
variant | "default" | "muted" | "glass" | "ghost" | No | default | Text treatment style. |
size | "sm" | "md" | "lg" | No | md | Type scale. |
Source
Import directly from the package or browse the source on GitHub. Click any file to view it.
Generated API Snapshot
Beta
Generated API Snapshot
BetaAuto-extracted from TypeScript source in packages/ui/src/components/text.tsx. This section is in beta and may lag behind hand-curated docs. Regenerate with pnpm --filter @glinui/docs api:generate.
Generated: 2026-02-19T17:59:28.468Z · Full index: /docs/api-metadata
Primary Props Type
TextProps
TextProps
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
size | "sm" | "md" | "lg" | No | "md" | Variant option from textVariants. |
variant | "default" | "muted" | "glass" | "ghost" | No | "default" | Variant option from textVariants. |