Seed Bible extension API (v1.18.0) / seed-bible/components / BottomSheetExpansion
Interface: BottomSheetExpansion
Lets a sheet grow by dragging its handle up. The sheet only runs the gesture; the caller owns the extra content and lays it out from the live onDragReveal value, because only it knows what is being revealed.
Properties
canExpand
canExpand: boolean;Whether there is anything to reveal. False makes the handle inert.
collapseLabel
collapseLabel: string;distance
distance: number;On-screen pixels between collapsed and fully expanded.
expanded
expanded: boolean;expandLabel
expandLabel: string;onDragReveal
onDragReveal: (reveal: number | null) => void;Pixels of the extra content showing while a finger is on the sheet, or null once the gesture ends and the expanded state takes over again.
Parameters
| Parameter | Type |
|---|---|
reveal | number | null |
Returns
void
onExpandedChange
onExpandedChange: (expanded: boolean) => void;Parameters
| Parameter | Type |
|---|---|
expanded | boolean |
Returns
void