Atelier UI

Search components…

Search components…

Bottom Sheet

Draggable bottom sheet that snaps between stops, dismisses when pulled down and cycles on handle click.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

BottomSheetProps

Also accepts all props of Omit<React.ComponentProps<"div">, "title">

PropTypeDefaultDescription
open* requiredboolean——
onOpenChange* required(open: boolean) => void——
titleReact.ReactNode——
snapPointsnumber[][0.4, 0.85]Visible fractions of the container, ascending
defaultSnapnumber0Index into snapPoints the sheet opens at

Install

$ npx shadcn@latest add https://chromotion.dev/r/bottom-sheet.json

More like this