---
title: "Corner Bloom"
description: "Card actions that bloom out of one corner of the card on hover or focus, joined to it by a liquid neck, and melt back in when you leave."
url: https://gelatinui.com/components/corner-bloom
markdown_url: https://gelatinui.com/components/corner-bloom.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/corner-bloom"
version: "2026-11-21"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Corner Bloom

> Card actions that bloom out of one corner of the card on hover or focus, joined to it by a liquid neck, and melt back in when you leave.

Page: https://gelatinui.com/components/corner-bloom

## When to use it

Best for: Two to five quick actions on one card, hidden at rest and close to the card when you need them.

- Use it for actions on the card itself, such as connect, duplicate, or settings, that people use often but not always.
- Set `rounded` to the radius of your card: the actions ride a path that keeps the same distance from that corner.
- Pick the `corner` with the most free room around the card, for example `bottom-end` for a card near the top of a canvas.
- Wrap each action in a `Tooltip` on the side away from the card, so people see its name.

## When not to use it

- For one round button that floats over a page and fans out actions, use a [Speed Dial](https://gelatinui.com/components/speed-dial.md).
- For a row of tools that must always show, use a [Toolbar](https://gelatinui.com/components/toolbar.md).
- For actions on a selection of many rows, use an [Action Bar](https://gelatinui.com/components/action-bar.md).

## Notes for agents

- Compose `CornerBloom` > `CornerBloomSurface` (the card content) and `CornerBloomActions` > `CornerBloomAction` (or `CornerBloomLinkAction` for an `a`).
- Give `CornerBloomActions` an `aria-label` (for example "Step actions") and each action an `aria-label`.
- Keep `bg-card` on the surface and the actions: the goo neck is drawn in that fill. With a new fill, set the same color on each action.
- Hover, keyboard focus, and a tap open it; leave, Escape, and a press outside close it. `open`, `defaultOpen`, and `onOpenChange` control it.
- Do not put a delete action in the bloom: it opens under the pointer, so a slip would run it.

## Anatomy

```text
CornerBloom
├─ CornerBloomSurface (0..n)
├─ CornerBloomActions (0..n)
├─ CornerBloomAction (0..n)
└─ CornerBloomLinkAction (0..n)
```

## API reference

### CornerBloom

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `open` | `boolean` |  | Open (controlled). Leave it out to let hover, keyboard focus, and a tap open the bloom. |
| `defaultOpen` | `boolean` | false | Open at the first render (uncontrolled). Default false. |
| `onOpenChange` | `function` |  | Called with the next open state on hover, focus, tap, Escape, or a press outside. |
| `corner` | `CornerBloomCorner` | "top-end" | The corner the actions bloom from. `start` and `end` follow the text direction. Default `top-end`. |
| `rounded` | `number` | 20 | The corner radius of the surface in px: the actions ride a path concentric with it. Default 20. |
| `gap` | `number` | 12 | The air between the surface and the actions in px. Default 12. |
| `size` | `"default" \| "lg" \| "sm"` | "default" | The action size: `sm` 32, `default` 36, `lg` 40 px (each with a 44px touch target). |
| `disabled` | `boolean` | false | No bloom: the actions stay folded and do not take focus. |
| `children` | `ReactNode` |  | A `CornerBloomSurface` and a `CornerBloomActions`. |

### CornerBloomSurface

Also takes every prop of Base UI `UseRender`: https://base-ui.com/react/components/use-render

### CornerBloomActions

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |

Also takes every prop of Base UI `Toolbar.Root`: https://base-ui.com/react/components/toolbar

### CornerBloomAction

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |

Also takes every prop of Base UI `Toolbar.Button`: https://base-ui.com/react/components/toolbar

### CornerBloomLinkAction

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| CornerBloom | `corner-bloom` |  | `--corner-bloom-goo`, `--corner-bloom-radius` |  |
| CornerBloomSurface | `corner-bloom-surface` |  | `--corner-bloom-radius` |  |
| CornerBloomActions | `corner-bloom-actions` |  |  |  |
| CornerBloomAction | `corner-bloom-action` | `data-disabled` | `--corner-bloom-reveal` | `hit-area` |
| CornerBloomLinkAction | `corner-bloom-link-action` | `data-disabled` | `--corner-bloom-reveal` | `hit-area` |

## Usage

Compose the card and its actions as parts; the actions bloom out of the card corner.

```tsx title="workflow-node.tsx"
import { CopyIcon, GearSixIcon, LinkIcon, PlusIcon } from "@phosphor-icons/react/ssr";

import {
  CornerBloom,
  CornerBloomAction,
  CornerBloomActions,
  CornerBloomSurface,
} from "@/components/pro/actions/corner-bloom";

export function WorkflowNode() {
  return (
    <CornerBloom rounded={20}>
      <CornerBloomSurface className="w-72 p-4">
        <p className="text-sm font-medium">Post summary to Slack</p>
        <p className="text-sm text-muted-foreground">Step 07 · #support</p>
      </CornerBloomSurface>
      <CornerBloomActions aria-label="Step actions">
        <CornerBloomAction aria-label="Connect">
          <LinkIcon />
        </CornerBloomAction>
        <CornerBloomAction aria-label="Add a step">
          <PlusIcon />
        </CornerBloomAction>
        <CornerBloomAction aria-label="Duplicate">
          <CopyIcon />
        </CornerBloomAction>
        <CornerBloomAction aria-label="Settings">
          <GearSixIcon />
        </CornerBloomAction>
      </CornerBloomActions>
    </CornerBloom>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/corner-bloom
```

It adds 26 registry items: 24 files, 3563 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `@xstate/react`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`, `xstate`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Speed Dial](https://gelatinui.com/components/speed-dial.md)
- [Toolbar](https://gelatinui.com/components/toolbar.md)
- [Tooltip](https://gelatinui.com/components/tooltip.md)
- [Action Bar](https://gelatinui.com/components/action-bar.md)

## Keyboard

| Keys | Action |
| --- | --- |
| Tab | Moves the focus onto the first action and opens the bloom; the next Tab leaves it. |
| Left Arrow, Right Arrow | Moves the focus to the previous or the next action. |
| Home, End | Moves the focus to the first or the last action. |
| Escape | Closes the bloom and takes the focus off the folded action. |

## Accessibility

The actions are a Base UI Toolbar: one tab stop, and the arrow keys move between the actions.

Folded actions stay in the tab order, so a keyboard Tab reaches them and opens the bloom. A disabled bloom makes them `inert`.

Each action has a 44px touch target, also when the round button is 32px.

## Motion

| Part | Motion |
| --- | --- |
| Bloom out | panelBounce · each action leaves the card corner on a spring, 40ms apart, first in page order first; its goo blob swells mid-way, so a liquid neck holds it to the card and snaps |
| Fold back | panel · a 260ms tween back into the corner, the last action first, 20ms apart |
| Icon | panelBounce · the icon fades in over the last part of the trip, after the action has left the card |
| Press | press · an action shrinks to 94% while pressed |
