nessra uinessra ui

Styled text components for headings, paragraphs, lists, and more.

Loading...
import {
  TypographyBlockquote,
  TypographyH1,

Installation

pnpmnpmyarnbun
pnpm dlx shadcn@latest add https://nessra-ui.vercel.app/r/typography.json

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

ComponentElementDescription
TypographyH1<h1>Main page heading
TypographyH2<h2>Section heading with border
TypographyH3<h3>Subsection heading
TypographyH4<h4>Minor heading
TypographyP<p>Paragraph with spacing
TypographyBlockquote<blockquote>Styled quote block
TypographyList<ul>Bulleted list with spacing
TypographyInlineCode<code>Inline code snippet
TypographyLead<p>Introductory text (larger)
TypographyLarge<div>Large emphasized text
TypographySmall<small>Fine print text
TypographyMuted<p>Secondary/muted text

All components accept className and standard HTML props for their respective elements.