Skip to main content

BwBottomSheet | bw-bottom-sheet

Overview

The bottom sheet component is a modal that slides up from the bottom of the screen.

Properties

PropertyAttributeDescriptionTypeDefault
destroydestroyOptionally execute a promise before closing begins() => void | Promise<void>undefined
initinitOptionally execute a promise before presentation begins() => void | Promise<void>undefined
maxPercentmax-percentMaximum height (expanded fullscreen).number90
midPercentmid-percentIntermediate height (mid state).number60
minPercentmin-percentMinimum height (collapsed state).number30
openopenOpens and closes modalbooleanfalse

Events

EventDescriptionType
openChangeEmits when the bottom sheet is toggledCustomEvent<boolean>
readyThe event emitted when the component has completed it's first renderCustomEvent<any>
sheetDismissThe event emitted when the bottom sheet is dismissedCustomEvent<{ role?: string; data?: any; }>
sheetPresentThe event emitted when the bottom sheet is presentedCustomEvent<any>

Methods

dismiss(role?: string, data?: any) => Promise<void>

Dismisses the bottom sheet

Parameters

NameTypeDescription
rolestring- The role of the dismiss
dataany- The data of the dismiss

Returns

Type: Promise<void>

present() => Promise<void>

Presents the bottom sheet

Returns

Type: Promise<void>

Slots

SlotDescription
The content of the bottom sheet
"trigger"The trigger element of the bottom sheet

Shadow Parts

PartDescription
"dialog"The dialog element of the bottom sheet
"inner-container"The inner container of the bottom sheet

Dependencies

Used by

Graph


© 2025 United Systems & Software - All Rights Reserved.