Component
BottomSheet
A FormaUI modal bottom sheet — content that slides up from the bottom over a scrim, delegating to Material 3's ModalBottomSheet.
import dev.formaui.components.bottomsheet.FormaBottomSheet
Preview
This toggle is site chrome only — the preview has its own light/dark switch inside.
Live preview — ~37 MB development build
Usage
var open by remember { mutableStateOf(false) }FormaButton(onClick = { open = true }) { Text("Show sheet") }if (open) { FormaBottomSheet(onDismissRequest = { open = false }) { Text("Payment options", style = MaterialTheme.typography.titleMedium) Text("Choose how you'd like to pay.") FormaButton(onClick = {}, modifier = Modifier.fillMaxWidth()) { Text("Continue") } }}
FormaBottomSheet
Modal bottom sheet shown while composed; the Material 3 SheetState is managed internally so callers only need FormaUI's opt-in.
Accessibility
Delegates to Material 3's ModalBottomSheet, which holds focus above the scrim and routes a scrim tap, back press, or swipe-down to onDismissRequest; the default M3 drag handle (and its semantics) comes with the sheet. The sheet itself carries no title semantics — give its content a heading Text of its own.