# Typography

> Preset text styles: headings, lead, muted, code and blockquote.

- Category: [Text & media](https://tarve.dev/docs.md#text-media)
- Import: `import { Typography } from "@tarve/core";`
- Props type: `TypographyProps`
- Source: [packages/core/src/form-controls.ts:466](https://github.com/omarcosr/tarve/blob/main/packages/core/src/form-controls.ts#L466)

## Usage

```tsx title="Typography.tsx"
import { Column, Typography } from "@tarve/core";

<Column gap={8}>
  <Typography variant="h2">Release notes</Typography>
  <Typography variant="lead">Everything new in this version.</Typography>
  <Typography variant="muted">Updated today</Typography>
  <Typography variant="code">bun add @tarve/core</Typography>
</Column>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | `TypographyVariant` | `"p"` |  |

## Common props

Shared by every component (descriptions: https://tarve.dev/docs.md#common-props): `children`, `class`, `className`, `highlight`, `id`, `key`, `motionFrom`, `onHighlight`, `onPaste`, `onPointerLeave`, `onPointerMove`, `onSize`, `onTransitionEnd`, `rovingGroup`, `style`.

## Types

```ts title="TypographyVariant"
type TypographyVariant = "h1" | "h2" | "h3" | "h4" | "p" | "lead" | "large" | "small" | "muted" | "code" | "blockquote";
```

Previous: [Text](https://tarve.dev/docs/components/Text.md) · Next: [Link](https://tarve.dev/docs/components/Link.md)

---

Tarve v0.13.8 · HTML version: https://tarve.dev/docs/components/Typography · Index for agents: https://tarve.dev/llms.txt
