Sheet
Sheet is a mobile-first bottom panel component built on top of Drawer.
It defaults to bottom placement and rounded top corners.
Quick Start
from faststrap import Button, Sheet
Button(
"Open actions",
data_bs_toggle="offcanvas",
data_bs_target="#mobileActions",
)
Sheet(
"Quick actions go here",
sheet_id="mobileActions",
title="Actions",
)
Notes
SheetwrapsDrawerwithplacement="bottom".- Pass
heightto control panel height (for example"50%","70vh"). - Other
Drawerkwargs such asbackdropandscrollare supported.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
*children |
Any |
Required | Sheet content |
sheet_id |
str \| None |
None |
ID used by trigger target |
title |
str \| None |
None |
Optional header title |
height |
str |
"auto" |
CSS height for the sheet |
**kwargs |
Any |
- | Forwarded to Drawer |
faststrap.components.display.sheet.Sheet(*children, sheet_id=None, title=None, height='auto', **kwargs)
A mobile-native "Bottom Sheet" component.
This is a wrapper around Drawer with specific styling to look like
a bottom sheet (rounded top corners, bottom placement).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
*children
|
Any
|
Content |
()
|
sheet_id
|
str | None
|
Unique ID |
None
|
title
|
str | None
|
Title |
None
|
height
|
str
|
CSS height value (default: auto) |
'auto'
|
**kwargs
|
Any
|
Arguments passed to Drawer |
{}
|