# Flare stack

The one machine in the family that is a process rather than a mechanism: a knockout drum, a derrick-supported riser and a tip, under a plume whose length is the flow and whose lean is the wind.

> For the complete index, see [llms.txt](https://robocn.dev/llms.txt). A Markdown version of any page is available by appending `.md` to its URL or by sending an `Accept: text/markdown` header.

## Install

```bash
bunx --bun shadcn@latest add https://robocn.dev/r/flare-stack.json
```

Registry item: `flare-stack` · [`https://robocn.dev/r/flare-stack.json`](https://robocn.dev/r/flare-stack.json)

## Notes

- Everything solid is modelled — drum, derrick, riser, tip, steam ring, pilots. The plume is drawn: `flow` is a proportion of its length, not a rate.
- No heat, radiation, smoke, composition, velocity or combustion is computed.

## Usage

```tsx
import { FlareStack } from "@/components/ui/flare-stack"

<FlareStack behavior="flare" wind={22} />
<FlareStack flow={0.05} behavior="pilot" />
```

## Props

| name | type | default | description |
| --- | --- | --- | --- |
| `flow` | `number` | — | Controlled flow to the tip, 0 pilots only to 1 full. Supplying it stops the loop. |
| `behavior` | `"flare" | "pilot" | "static"` | `"flare"` | A relief event — fast rise, long decay — or pilots lit and nothing else. |
| `wind` | `number` | `14` | Lean on the plume in degrees from vertical, clamped to ±50. |
| `showKnockout` | `boolean` | `true` | The knockout drum and the header running up to the riser. |
| `interactive / onFlowChange` | `boolean / (flow: number) => void` | — | Drag or arrow-key the flow to the tip. |
| `view` | `"plan" | "front" | "profile" | "iso"` | `"front"` | Where the camera stands. One flare stack, four projections: straight down, straight on, side elevation, or three-quarter from above. |
| `animate` | `boolean` | `true` | Off parks the machine at phase and stops rendering. A reduced-motion preference does the same. |
| `paused` | `boolean` | `false` | Freeze where it stands. |
| `phase` | `number` | `0` | Seconds of offset, so a row of machines breaks step. |
| `variant` | `"solid" | "outline" | "blueprint" | "wire"` | `"solid"` | How the machine is painted. Geometry never changes between variants. |
| `size` | `"xs" | "sm" | "md" | "lg" | "xl" | number` | `"md"` | Rendered width in pixels, or a step on the scale. |
| `color` | `string` | `var(--robot-shell)` | Body panels — the colour the machine reads as. |
| `accent` | `string` | `var(--robot-accent)` | Status colour: tip light, live tool, readouts. |
| `metal` | `string` | `var(--robot-metal)` | Bare machined parts: collars, bolts, tool bodies. |
| `dark` | `string` | `var(--robot-dark)` | Cast joints, base, shadow side. |
| `palette` | `Partial<RobotPalette>` | — | Override any subset of roles at once, including glow and grid. |

## Source

- `src/components/ui/flare-stack.tsx`
