---
agent:
  instructions: "Search goop.so for Goop's components, templates, design skill, docs, pricing and terms. Ask in keywords or a plain question, such as \"date picker props\" or \"is the design skill free\"; the answer is the matching page sections in Markdown, each with its address."
  endpoint: "https://goop.so/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Action sheet

A list of actions on one thing, for React and Tailwind CSS. Part of Goop Pro.

Pro. Its export: `ActionSheet`.

## Try it

Pick Phone or Wider window, then press Note actions (or Tab onto it and press Enter or Space): on the phone the actions rise as a sheet from the screen’s foot with Cancel under them, wider they open as a menu under the button. Star, Duplicate, Move to archive or the red Delete note changes the list, and the line under it says what ran; Cancel, Escape or a press outside run nothing, and the line says so.

The notes are our own and live in this page alone: nothing is starred, copied, archived or deleted anywhere.

## When to use

- A list of actions on one thing.

## Installation

Paste the prompt below into your coding agent. It reads Goop's install steps, installs the part and its tokens once, then reuses this same Action sheet on every screen instead of drawing a new one: the same height, the same focus ring, the same spacing. As a Pro part, its command comes from Goop's server once you sign in, with a one-time link that lasts ten minutes.

```sh
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-action-sheet.json --yes
```

```text
Add the Goop Action sheet to this project. The install steps are at https://goop.so/docs/install.md
```

## Usage

```tsx
import { useState } from 'react';
import {
  ActionSheet,
  ActionSheetAction,
  ActionSheetCancel,
  ActionSheetContent,
  ActionSheetTrigger,
} from '@/components/ui/goop/action-sheet';
import { IconButton, IconButtonIcon } from '@/components/ui/goop/icon-button';

function ReportActions() {
  const [archived, setArchived] = useState(false);
  return (
    <ActionSheet>
      <ActionSheetTrigger asChild>
        <IconButton variant="ghost" aria-label="Actions for Q3 report">
          <IconButtonIcon icon="dots" />
        </IconButton>
      </ActionSheetTrigger>
      <ActionSheetContent title="Q3 report" description={archived ? 'In the archive.' : 'Shared with the team.'}>
        <ActionSheetAction icon="copy">Duplicate</ActionSheetAction>
        <ActionSheetAction icon="archive" disabled={archived} onSelect={() => setArchived(true)}>
          Move to archive
        </ActionSheetAction>
        <ActionSheetAction icon="trash" destructive>
          Delete report
        </ActionSheetAction>
        <ActionSheetCancel />
      </ActionSheetContent>
    </ActionSheet>
  );
}
```

- Fits: list, record: overlay.
- Also known as: ActionMenu, BottomSheetMenu.
- height, width, padding, gap, corner, border, background, text, motion: add no class for these.

## API reference

### Options

- `open?: boolean` — Whether it is open, when the caller holds it (with `onOpenChange`).
- `defaultOpen?: boolean = false` — Whether it is open at first, when the root holds it.
- `onOpenChange?: (open: boolean) => void` — Hears every open and close: the trigger, an action, Cancel, Escape, a press outside.
- `presentation?: 'auto' | 'sheet' | 'menu' = 'auto'` — `auto` (the default): the bottom sheet under the theme's narrow breakpoint, the menu above it.
- `children?: ReactNode` — The trigger and the content.

- State: open (open / defaultOpen / onOpenChange); drawn by data-focus-visible

### Parts

- `ActionSheetTrigger` — The control that opens the actions; takes asChild
- `ActionSheetContent` — The actions' layer; title?: ReactNode — The words over the actions: the sheet's title (its spoken name) or the menu's label; description?: ReactNode — A sentence under the title: the sheet's description, or a grey line under the menu's label; label?: string = 'Actions' — The spoken name when no `title` is drawn ("Actions" when left out); container?: HTMLElement | null — Where the layer is portalled; the end of `<body>` when left out; className?: string — Your classes, on the sheet's panel or the menu's panel; children?: ReactNode — The `ActionSheetAction`s, then an `ActionSheetCancel`
- `ActionSheetAction` — One action; children?: ReactNode — The action's words; onSelect?: (event: Event) => void — Runs the action, on a press, Enter or Space; the layer then closes, unless the handler calls `event.preventDefault()`; destructive?: boolean = false — The action that deletes or cannot be undone: its words and icon in the theme's red, its wash red; disabled?: boolean = false — Takes the action out of the keys and the pointer; it fades; icon?: IconName — A pack icon's name, drawn before the words in a 16 px box; className?: string — Your classes, on the row
- `ActionSheetCancel` — Closes the sheet with no action, in a row of its own under the actions ("Cancel" when it holds no words); children?: ReactNode = 'Cancel'; className?: string

## Keyboard

- Enter / Space: on the trigger, open; on an action, run it and close
- ArrowDown: the next action (Cancel last, then round to the first)
- ArrowUp: the action before, round from the first to Cancel
- Home / End: the first action or Cancel
- Escape: close, the focus back on the trigger
- Tab: move to the next control, held inside the sheet

## Accessibility

- The native element answers the keyboard.
- hover, active: the browser's own (:hover, :active): write nothing
- focus-visible: the attribute data-focus-visible

## Motion

- The part sets its own motion: add no transition or animation of your own.

## Notes for AI

Give your coding agent this page as text instead of screenshots: the parts, the options, the states and the keys. An agent that reads the real part builds the real part, not a lookalike.

Shortened to fit: the data-slot values.

## Related

- [Icon button](/themes/meadow/components/icon-button): A button whose one visible label is a pack icon, for toolbars, rows and headers, with a spoken name.
- [Arranged app frame](/themes/meadow/components/app-frame-arrangements): The page's frame in the arrangement it asks.
- [Approval request](/themes/meadow/components/approval-request): An AI agent's request for a person's yes before it acts, with Approve and Deny, showing the decision once made.
- [Audio player](/themes/meadow/components/audio-player): A recording played in place, such as a meeting's audio on its notes.
