React

Action Sheet (Deprecated)

Deprecated. Use Swipeable Menu Sheet.

Installation

npx @seed-design/cli@latest add ui:action-sheet

Props

ActionSheetRoot

Prop

Type

childrenReact.ReactNode
open?boolean | undefined
defaultOpen?boolean | undefined
onOpenChange?((open: boolean, details?: DialogChangeDetails) => void) | undefined

ActionSheetContent

Prop

Type

title?React.ReactNode
description?React.ReactNode
layerIndex?number | undefined

ActionSheetItem

Prop

Type

labelReact.ReactNode

Examples

Portalled

You can wrap <ActionSheetContent> with <Portal> to render the content in the element you want.

Portal renders to document.body by default.

Table of contents