# IconSlot

Consistent geometry for a host-supplied SVG icon.

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

export function Example() {
  return (
    <FloodRoot>
      <IconSlot size="md"><ArrowRight /></IconSlot>
    </FloodRoot>
  );
}
```

## Design notes

- No glyph pack ships in the React package. Keep the license of the host's icon artwork.
- Without label the slot is decorative. With label it exposes role="img" and an accessible name.
- Use an SVG rather than a text character. Avoid inline SVG sizing styles that override the slot.

## API reference

| Prop | Values | Default |
| --- | --- | --- |
| `size` | `"2xs" \| "xs" \| "sm" \| "md" \| "lg" \| "xl" \| "2xl"` | `"md"` |
| `label` | `string` | `—` |
| `Native HTML props` | `HTMLAttributes<HTMLSpanElement>` | `Forwarded` |
