Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProA draggable glass bottom sheet with peek, half and full detents driven by a real spring. Flicks carry momentum to the next detent, dragging past the top or bottom rubber bands, and as the sheet rises the page behind it scales back, rounds its corners and dims like a stacked modal. Content scrolls only at full height and hands the gesture back to the sheet at the top; the grab handle is keyboard operable with arrow keys, Home, End and Escape, and every value can be controlled.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
The copied code, markdown and prompt include the values you set here.
import { BottomSheetDetents } from "@/components/hyperblur-pro/bottom-sheet-detents"
<BottomSheetDetents />
<div style={{ position: "relative", height: 720 }}>
<BottomSheet style={{ position: "absolute", inset: 0 }} background={<Map />} detents={[0.2, 0.5, 0.92]}>
<TrailDetails />
</BottomSheet>
</div>| Prop | Type | Default | Description |
|---|---|---|---|
| detents | number[] | [0.18, 0.52, 0.93] | BottomSheet: visible heights as fractions of the container. |
| detent / defaultDetent | number | 1 | BottomSheet: controlled or uncontrolled detent index. |
| onDetentChange | (index: number) => void | undefined | BottomSheet: called when the sheet settles on a new detent. |
| background | ReactNode | undefined | BottomSheet: page content behind the sheet that scales and dims. |
| appearance | "light" | "dark" | "auto" | "light" | Sheet glass tint and text color. |
| scaleBackground | boolean | true | Push the page back as the sheet goes from half to full. |
| refraction | number | 1 | Strength of the glass edge lens on the sheet. |
| accent | string | "#2f9e6b" | BottomSheetDetents: route button and elevation chart color. |
| image / photos | string / string[] | Unsplash landscapes | BottomSheetDetents: page photo and the photo strip in the sheet. |
| title / subtitle | string | "Sheets that settle." | BottomSheetDetents: copy beside the demo screen. |
Source code is included in Pro and above