# Stool

> A round bar stool: a disc seat on three splayed legs; a thin cylinder collider.

## Add it

```bash
npx @runek/cli add stool
```

Pulls `@react-three/rapier@^2.2.0`, `@runek/core@^0.15.0`.

## Use it

```tsx
import { Stool } from './runek/Stool'

<Stool position={[0, 0, 0]} />
```

Or as a node in a world file ([worlds as data](https://runek.nullorder.org/docs/worlds-as-data.md)):

```json
{ "type": "Stool", "props": { "position": [0, 0, 0] } }
```

## Props

| Prop | Type | Default | Description |
|---|---|---|---|
| `height` | `number` | `0.95` | Seat height above the ground, in units. |
| `radius` | `number` | `0.24` | Seat radius, in units. |
| `color` | `color` |  | Color; defaults to the palette's `wood`. |
| `position` | `[x, y, z]` | `[0, 0, 0]` | Position [x, y, z] in units (1 unit = 1 m, Y-up). |
| `rotation` | `[x, y, z]` | `[0, 0, 0]` | Euler rotation [x, y, z] in radians. |
| `seed` | `number` |  | Accepted for the component contract; this component has no seeded variation yet. |

## Registry manifest

[https://runek.nullorder.org/r/components/stool.json](https://runek.nullorder.org/r/components/stool.json): Self-contained JSON: inlined source plus resolved dependencies, exactly what `runek add stool` fetches.

Browse the whole catalog in the **[gallery →](https://runek.nullorder.org/gallery)**.
