Typography
Styled text components for headings, paragraphs, lists, and more.
import {
TypographyBlockquote,
TypographyH1,Installation
pnpmnpmyarnbun
Usage
import {
TypographyBlockquote,
TypographyH1,
TypographyH2,
TypographyH3,
TypographyH4,
TypographyInlineCode,
TypographyLarge,
TypographyLead,
TypographyList,
TypographyMuted,
TypographyP,
TypographySmall,
} from "@/components/ui/typography"Components
Headings
<TypographyH1>Heading 1</TypographyH1>
<TypographyH2>Heading 2</TypographyH2>
<TypographyH3>Heading 3</TypographyH3>
<TypographyH4>Heading 4</TypographyH4>Paragraph
<TypographyP>
The king thought long and hard, and finally came up with a brilliant plan.
</TypographyP>Lead
A larger paragraph for introductory text.
<TypographyLead>
A tale of taxes, jokes, and the people who tell them.
</TypographyLead>Blockquote
<TypographyBlockquote>
"After all," he said, "everyone enjoys a good joke."
</TypographyBlockquote>List
<TypographyList>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</TypographyList>Inline Code
<TypographyP>
Use the <TypographyInlineCode>console.log()</TypographyInlineCode> function.
</TypographyP>Text Sizes
<TypographyLarge>Large text for emphasis</TypographyLarge>
<TypographySmall>Small text for fine print</TypographySmall>
<TypographyMuted>Muted text for secondary content</TypographyMuted>API Reference
Components
All components accept className and standard HTML props for their respective elements.