# Inline

A wrapping horizontal group for related content and actions.

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

export function Example() {
  return (
    <FloodRoot>
      <Inline gap="2" align="center">
        <Button>Save changes</Button>
        <Button variant="subtle">Cancel</Button>
      </Inline>
    </FloodRoot>
  );
}
```

## Design notes

- Inline wraps when its children need more space.
- Use the same control size for neighboring actions of the same level.
- Rows center items by default. Use gap="4" between independent choices; gap="2" remains available for tightly related content.

## API reference

| Prop | Values | Default |
| --- | --- | --- |
| `gap` | `"0" \| "1" \| "2" \| "3" \| "4" \| "6" \| "8" \| "12"` | `"2"` |
| `align` | `"start" \| "center" \| "end" \| "baseline"` | `"center"` |
| `Native HTML props` | `HTMLAttributes<HTMLDivElement>` | `Forwarded` |
