# Text

Role-based interface text, from introductory copy to small supporting details.

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, Text } from "@flood-md/react";
import "@flood-md/react/styles.css";

export function Example() {
  return (
    <FloodRoot>
      <Stack gap="3">
        <Text as="p" size="lead">A calm foundation for your next idea.</Text>
        <Text as="p" size="compact">Use the space to make it yours.</Text>
      </Stack>
    </FloodRoot>
  );
}
```

## Design notes

- Use as="p" for paragraphs. The label size does not create a form association.
- Subtle is a supplementary tone; evaluate small required instructions against the actual background and font size.

## API reference

| Prop | Values | Default |
| --- | --- | --- |
| `as` | `"span" \| "p" \| "div"` | `"span"` |
| `size` | `"lead" \| "body" \| "compact" \| "label" \| "helper"` | `"body"` |
| `tone` | `"default" \| "subtle" \| "error" \| "success" \| "warning" \| "info"` | `"default"` |
| `Native HTML props` | `HTMLAttributes<HTMLElement>` | `Forwarded` |
