# Consequence Button

> A button that widens on hover or focus to show what a click will do, like Deploy · main → Production, so you read the outcome before you commit. On touch the first tap shows it.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Components › Buttons |
| Live preview | https://uibrik.com/components/consequence-button |
| Writes | 1 file into `components/uibrik/consequence-button/` |
| Packages | `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 30, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/consequence-button.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/consequence-button`.

Can't run commands? https://uibrik.com/components/consequence-button/prompt.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { ConsequenceButton } from "@/components/uibrik/consequence-button/consequence-button";

<ConsequenceButton
  children="Deploy"
  variant="primary"
  duration={0.35}
  delay={90}
  launch
  radius={12}
  icon={<IconCircleArrowUpFilled />}
  // detail={<…/>}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/consequence-button.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `children` | `string` | `"Deploy"` | The label. |
| `variant` | `"primary" \| "secondary"` | `"primary"` | Solid, or a quiet tinted fill. |
| `duration` | `number` | `0.35` | How long the button takes to widen. |
| `delay` | `number` | `90` | How long the pointer rests before the detail shows. |
| `launch` | `boolean` | `true` | Send the icon up and out on click, with a fresh one rising from below. |
| `radius` | `number` | `12` | Corner radius. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `detail` | `ReactNode` |  | What a click will do. Text and small icons, kept to one line. |
| `icon` | `ReactNode` |  | Shown before the label. |
| `...button props` | `ButtonHTMLAttributes` |  | onClick, disabled, className and the rest pass through. |

## Where it fits

- **Deploys and releases**: Show the branch and environment a click will ship to.
- **Moves and sends**: Move to · Archive, Send · 3 recipients: the target is clear before the click. Pairs with [Split Button](https://uibrik.com/components/split-button.md).
- **Billing actions**: Upgrade · $24 a month shows the cost right on the button.

## Same shelf: Buttons

- [Copy Button](https://uibrik.com/components/copy-button.md): A copy button whose two sheets slide together into a check while the label rolls to Copied.
- [Expand Button](https://uibrik.com/components/expand-button.md): An icon-only button that springs open to reveal its label on hover or keyboard focus.
- [Hold to Confirm](https://uibrik.com/components/hold-to-confirm.md): A destructive-action button that has to be held down; a fill grows across it and drains back if released early.
- [Inline Confirm](https://uibrik.com/components/inline-confirm.md): A destructive button that splits into Cancel and Confirm in its own footprint, so nothing around it moves.
- [Mesh Button](https://uibrik.com/components/mesh-button.md) (Pro): A button painted with a softly blended mesh gradient under rolling silk waves that catch a satin sheen; the pointer presses into the silk and a click ripples it.
- [Prism Button](https://uibrik.com/components/prism-button.md) (Pro): A graphite button with a border of polished metal that splits light like a prism; the glint travels round the border and turns to follow the pointer.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/consequence-button/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
