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/tokens

Registry

pnpm dlx @glinui/cli@latest add text

Usage

Default body copy.

Muted supporting copy.

Glass highlighted note.

TSX
1import { Text } from "@glinui/ui"
2
3export 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

PropTypeRequiredDefaultDescription
variant"default" | "muted" | "glass" | "ghost"NodefaultText treatment style.
size"sm" | "md" | "lg"NomdType scale.

Source

Import directly from the package or browse the source on GitHub. Click any file to view it.

Import

import { Text } from "@glinui/ui"

Source Files

Dependencies

@glinui/ui

Generated API Snapshot

Beta

Auto-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

PropTypeRequiredDefaultDescription
size"sm" | "md" | "lg"No"md"Variant option from textVariants.
variant"default" | "muted" | "glass" | "ghost"No"default"Variant option from textVariants.