Mobile Action Sheet

An iOS style action sheet that rises from the bottom with a list of actions, destructive items in red, a Cancel button and a backdrop that dismisses on tap.

src/registry/ui/mobile-action-sheet.tsx/r/mobile-action-sheet.json

Installation#

bash
npx shadcn@latest add @minidev/mobile-action-sheet

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/mobile-action-sheet.json

Usage#

tsx
import { MobileActionSheet } from "@/components/ui/mobile-action-sheet"

export function Example() {
  return <MobileActionSheet />
}

API reference#

MobileActionSheet props
PropTypeDefault
openboolean-
onClose() => void-
actionsSheetAction[]SAMPLE_ACTIONS
triggerLabelstring"Open action sheet"
classNamestring-

Dependencies#

npm

React only

Built from

All dialog, drawer and popover components

Learn more