Tide Drawer

A bottom sheet that rises like the tide with a rolling wave edge. Drag it down to let it ebb away.

no dependenciesMIT · free

Share this page

Drag the handle down, press Escape or tap outside to close.

Installation

npx shadcn@latest add https://ombakui.com/r/tide-drawer.json

Usage

import { TideDrawer } from "@/components/tide-drawer";

<TideDrawer trigger={<button>Share</button>} title="Share this page">
  {/* anything */}
</TideDrawer>

Props

PropTypeDefaultDescription
openboolean–Open state (controlled).
onOpenChange(open: boolean) => void–Called when the drawer wants to open or close.
triggerReactNode–Element that opens the drawer on click.
title*ReactNode–Heading, also the accessible name.
descriptionReactNode–Optional line under the title.
childrenReactNode–Drawer body.
closeThresholdnumber120Pixels you need to drag down before it closes.
classNamestring–