React

Action Sheet (Deprecated)

더 이상 사용되지 않습니다. 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

<Portal>으로 <ActionSheetContent>를 감싸서 컨텐츠를 원하는 요소에 렌더링할 수 있습니다.

Portal은 기본적으로 document.body에 렌더링됩니다.

Last updated on

On this page