Skip to content

Bottom Sheet

The BottomSheet component is a sliding panel that emerges from the bottom of the screen.
It is commonly used to display additional content or actions without navigating away from the current view.

  • Sliding panel: Smooth animation from bottom of the screen.
  • Overlay support: Dim the background and close on click.
  • Variants: Supports different styles for drag handle (text, contained, outlined).
  • Customizable content: Place any HTML, components, or interactive elements inside.
  • Interactive: Can open, close, or toggle programmatically.

test

PropTypeDefaultDescription
isOpenbooleanfalseControls whether the bottom sheet is visible.
handleClosefunctionundefinedCallback function to close the bottom sheet.
variantstring"text"Visual style of the drag handle (text, contained, outlined).
OverlaycomponentOptionalBackground overlay to dim the screen and detect clicks.
ContentcomponentOptionalThe main content of the bottom sheet.
DragButtoncomponentOptionalThe draggable handle for opening/closing the sheet.
  • Use the overlay to focus attention on the bottom sheet and allow easy dismissal.
  • Keep content concise to avoid scrolling within the sheet if possible.
  • Use appropriate variants for the drag handle to match UI style.
  • Ensure interactive elements inside the sheet are accessible and focusable.
  • Avoid opening multiple bottom sheets simultaneously to prevent user confusion.