Overlays
Mobile filter sheet
The filter drawer shown below md. Renders nothing at all on desktop, where filters live inline.
Available
Needs mock props
Dual breakpoint
Examples
Rendered live from the maintained Storybook story. Lantern stores only the story id and embeds Storybook rather than duplicating the component or its demo.
Mobile filter sheet
Rendered live from Storybook
Storybook must be running for this to load — bun run start:storybook from the monorepo root, or set NEXT_PUBLIC_STORYBOOK_URL to a deployed instance.
Props
The component's public API, read from its TypeScript source. Descriptions come from TSDoc on the prop, so this table cannot drift from the component.
| Prop | Type | Default | Description |
|---|---|---|---|
open* | boolean | — | Undocumented — add TSDoc to the prop in the library. |
onOpenChange* | (open: boolean) => void | — | Undocumented — add TSDoc to the prop in the library. |
title* | string | — | Undocumented — add TSDoc to the prop in the library. |
onClear* | () => void | — | Undocumented — add TSDoc to the prop in the library. |
onApply* | () => void | — | Undocumented — add TSDoc to the prop in the library. |
children* | ReactNode | — | Undocumented — add TSDoc to the prop in the library. |
applyLabel | string | "Apply" | Undocumented — add TSDoc to the prop in the library. |
clearLabel | string | "Clear" | Undocumented — add TSDoc to the prop in the library. |
isMobile | boolean | — | Overrides the measured viewport. `undefined` (the default) uses the live viewport; pass `true`/`false` to force the mobile or desktop branch. |
Reference
Transcribed from the component audit. If this disagrees with the source, the source is right.
- Source
src/components/ui/mobile-filter-sheet.tsx- Portability
- Needs its app dependencies replaced by props before it renders in isolation.
- Responsive
- Carries a load-bearing
max-md:/md:pair. Sign off at both viewports — see the rule. - Notes
- Takes isMobile / forceMobile in place of the useIsMobile() early return, so both branches are reachable. The md:hidden is load-bearing.