# ColorSwatch

A named sample of an opaque RGB color.

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

export function Example() {
  return (
    <FloodRoot>
      <ColorSwatch label="Flood pink" value="#ff47a8" />
    </FloodRoot>
  );
}
```

## Design notes

- Opaque RGB colors only; keep a text label wherever color conveys meaning.

## API reference

| Prop | Values | Default |
| --- | --- | --- |
| `value` | `string` | `Required` |
| `label` | `string` | `Required` |
| `size` | `"sm" \| "md" \| "lg"` | `—` |
| `Native HTML props` | `Omit<HTMLAttributes<HTMLSpanElement>, "children" \| "color">` | `Forwarded` |
