Skip to content

Sheets

Bottom and side sheets for supplementary content, modal or standing in the layout.

import { BottomSheet, SideSheet, SheetTrigger } from '@windmorph/react';

Playground

Midnight Drive · 12 songs

Code

import { BottomSheet, Button, SheetTrigger } from '@windmorph/react'; <SheetTrigger>  <Button variant="tonal">Show player</Button>  <BottomSheet    aria-label="Now playing"  >    <div className="flex flex-col gap-2 px-6 pb-6">      <p className="text-title-medium text-on-surface">Now playing</p>      <p className="text-body-medium text-on-surface-variant">Track details and controls stay at hand while the page scrolls.</p>    </div>  </BottomSheet></SheetTrigger>

Examples

Bottom sheet

Standard bottom sheet

Standard bottom sheet, expanded or collapsed

Modal side sheet

Start edge, and keeping it open

Side sheet with levels

Standard side sheet