Weftv0.4.0
GitHubFigma
Blade AI
Navigation · Bottom Sheetstable

Bottom Sheet

Slides up from the bottom of a mobile screen to show filters, a short form or a list of actions. The page stays visible behind a dimmed overlay. It closes with Esc, the overlay, the close button or dragging the handle down.

Preview

#preview

Change the options and the code follows. Show code opens the React snippet.

bottom-sheet-example.tsx
import { BottomSheet, BottomSheetItem } from "@blade-ai/weft/components/bottom-sheet";

<BottomSheet
  isOpen={isOpen}
  onClose={() => setIsOpen(false)}
  title="Filter payments"
  footer={<Button>Show 124 payments</Button>}
>
  <BottomSheetItem>UPI</BottomSheetItem>
  <BottomSheetItem>Cards</BottomSheetItem>
</BottomSheet>

All states

#all-states

Default and with footer, rendered inline. Dragging is a touch interaction and is not pinned here.

Bottom Sheet · 2 inline states · 360 wide
Default
With footer

Props

#props

Read from the component source. Booleans are is-prefixed. A star marks a required prop.

Prop
Type
Default
Description
isOpen *
boolean
—
Controls visibility.
onClose *
() => void
—
Fires on Esc, overlay click, the close button, or dragging the handle down.
title *
string
—
Heading; also the accessible name of the dialog.
children
ReactNode
—
Sheet body. Rows are separated by a divider; wrap each in BottomSheetItem.
footer
ReactNode
—
Optional footer, usually a Reset button and a primary action.
closeLabel
string
"Close"
Accessible name of the close button.
isInline
boolean
false
Render inline instead of in a portal (docs and tests).

Usage

#usage

Short rules for choosing and writing bottom sheet.

Do
Use a bottom sheet for filters, menus and short forms on mobile.
Keep one sheet open at a time.
Put a Reset and a primary action in the footer for filters.
Don't
Use a centred Modal on mobile.
Stack a sheet on top of another sheet.
Make dragging the only way to close it.

Accessibility

#accessibility

A modal dialog labelled by its title. Focus moves in on open and returns on close.

Keyboard
Key
Action
Tab / Shift+Tab
Moves through controls inside the sheet.
Esc
Closes the sheet; focus returns to the trigger.
Enter / Space
Activates the focused control.
ARIA
Element
Role / attribute
When
Sheet
role="dialog" · aria-modal="true" · aria-label = title
While open.
Close button
aria-label = closeLabel
Always present.
Grab handle
decorative
Dragging is never the only way to close.