# Heading

Semantic heading levels with an independent visual scale.

Connect Flood once using [the installation guide](https://flood.md/docs/installation). Then import the components you use; no per-component add command is needed.

## Example

```tsx
"use client";

import { FloodRoot, Stack, Heading } from "@flood-md/react";
import "@flood-md/react/styles.css";

export function Example() {
  return (
    <FloodRoot>
      <Stack gap="4">
        <Heading level={2} size="page">Workspace settings</Heading>
        <Heading level={3} size="section">Notifications</Heading>
      </Stack>
    </FloodRoot>
  );
}
```

## Design notes

- Choose level for document structure and size for appearance.
- Display is a large marketing role. Keep page and section sizes for ordinary product interfaces.

## API reference

| Prop | Values | Default |
| --- | --- | --- |
| `level` | `1 \| 2 \| 3 \| 4 \| 5 \| 6` | `2` |
| `size` | `"display" \| "large" \| "page" \| "section"` | `"page"` |
| `Native HTML props` | `HTMLAttributes<HTMLHeadingElement>` | `Forwarded` |
