Seed Bible extension API (v1.18.0) / seed-bible/components / BottomSheetProps
Interface: BottomSheetProps
Properties
backdrop?
backdrop?: boolean;Full-screen backdrop that closes the sheet when tapped. Defaults to true. Without one the page behind stays usable, so the sheet is non-modal.
children?
children?: ComponentChildren;className?
className?: string;closeIcon?
closeIcon?: ComponentChild;The corner button's icon: a Material Symbols name, or an icon element. An arrow that should point the other way in right-to-left languages is an element, e.g. <MaterialIcon className="rtl-mirror">arrow_back</MaterialIcon>.
closeLabel?
closeLabel?: string;dragDisabled?
dragDisabled?: boolean;dragIgnoreSelector?
dragIgnoreSelector?: string;Extra elements, on top of buttons and inputs, that never start a drag.
dragSurface?
dragSurface?: "handle" | "sheet";Where a drag can start: only the handle and title row (the body is free to scroll), or anywhere on the sheet outside dragIgnoreSelector.
expansion?
expansion?: BottomSheetExpansion;footer?
footer?: ComponentChildren;label
label: string;Accessible name of the dialog.
onClose
onClose: () => void;Returns
void
onCloseButton?
onCloseButton?: () => void;Overrides what the ✕ button does; defaults to onClose.
Returns
void
onEscape?
onEscape?: () => void;Overrides what Escape does; defaults to onClose. A sheet whose ✕ goes back a step should pass the same handler, so Escape goes back too.
Returns
void
portal?
portal?: boolean;Render into <body> so no ancestor stacking context can bury it.
scrollBody?
scrollBody?: boolean;Wrap children in a scrolling body between the header and footer. Turn off for a sheet that manages its own overflow.
sheetRef?
sheetRef?: Ref<HTMLDivElement>;showClose?
showClose?: boolean;Show the ✕ button. Defaults to true.
style?
style?: CSSProperties;title?
title?: ComponentChildren;Visible title, shown in a header row with the close button.
titleIcon?
titleIcon?: string;Material Symbols icon name shown before the title.