# Typography

> Typography helpers for headings and body copy.

Registry name: `typography`. HTML docs: https://ui.anuragroy.dev/component/typography.

## Install

```bash
npx shadcn@latest add https://ui.anuragroy.dev/r/typography.json
```

If the website is down: `npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/typography.json`.

Registry JSON: https://ui.anuragroy.dev/r/typography.json (GitHub: https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/typography.json).

## Import

Import paths follow the consumer `components.json` aliases. After a default install:

```tsx
import {
  TypographyH1,
  TypographyH2,
  TypographyH3,
  TypographyH4,
  TypographyP,
  TypographyLead,
  TypographyMuted
} from "@/components/ui/typography"
```

## Usage

```tsx
import {
  TypographyH2,
  TypographyLead,
  TypographyP,
} from "@/components/ui/typography"

export function Example() {
  return (
    <div>
      <TypographyH2>Heading</TypographyH2>
      <TypographyLead>A short deck that sets the tone.</TypographyLead>
      <TypographyP>Body copy with comfortable rhythm.</TypographyP>
    </div>
  )
}
```

## API

### Typography helpers

Also exports `TypographyBlockquote`, `TypographyList`, `TypographyInlineCode` (aliased as `TypographyCode`), `TypographyLarge`, and `TypographySmall`. Each forwards the matching HTML element props.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | string | — |  |

## See also

- [HTML page](https://ui.anuragroy.dev/component/typography): Preview and the same docs in the site chrome.
- [Registry item](https://ui.anuragroy.dev/r/typography.json): Source files and dependencies.
- [Catalog](https://ui.anuragroy.dev/component): All components.
- [llms.txt](https://ui.anuragroy.dev/llms.txt): Agent index for this library.
