Surfaces

Text

The Text component wraps the native paragraph element to deliver consistent typography, responsive sizing, and muted colors for readable content across layouts.

The quick brown fox jumps over the lazy dog

Installation

Install the component via the CLI in one command.

npx shadcn@latest add @intentui/text

Manual installation

Use this approach if you prefer to install and wire up the component yourself instead of using the CLI.

npm install tailwind-merge tailwind-variants

Anatomy

import { Text } from "@/components/ui/text"

<Text>The quick brown fox jumps over the lazy dog</Text>

Examples

Loading...

Component API

Code

The Code component renders inline code text.

PropTypeDefault
classNamestring-

Strong

The Strong component renders emphasized text.

PropTypeDefault
classNamestring-

Text

The Text component renders paragraph text.

PropTypeDefault
classNamestring-

The TextLink component renders a styled text link.

PropTypeDefault
classNamestring-
Unlock the full power of
Intent UI Design

Build modern web apps faster with 1000+ resources across components, blocks, patterns, templates, and starter kits.

Learn more