smrt
Open the smrt source on GitHub Switch to dark color scheme
← All UI components

Feedback and overlays

PhoneSheet

The phone replacement for drawers and centered modals.

Public export

typescript
import { PhoneSheet } from '@happyvertical/smrt-ui/feedback';
Import path
@happyvertical/smrt-ui/feedback
Props
7
Props described
7 of 7
Bindable state
0
Callback events
1
Verified release
0.62.10

Props

NameTypeRequiredDescription
openbooleanYesWhether the sheet is shown.
titlestringYesHeading shown in the sheet header; also names the dialog.
onclose() => voidYesCalled on the close button, Escape, or a swipe down (sheet).
variant'page' | 'sheet'No`page` covers the area; `sheet` slides up with rounded corners.
idstringNoElement id, for `aria-controls` on the button that opens it.
closeLabelstringNoAccessible name of the close button (default "Close {title}").
childrenSnippetYesSheet body.

Bindable state

This component has no bindable public state.

Callback events

  • onclose() => void

Examples and explanation