Measured entry

cultui-family-drawer

sheetglassmorphismmotion on file

A composable React bottom drawer with animated height changes, swappable views, a portal and overlay, plus trigger, close, header, and button primitives. It ships as a client-side shadcn registry component and relies on Motion, react-use-measure, Vaul, Radix Slot, clsx, and utility CSS theme tokens.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of cultui-family-drawer at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of cultui-family-drawer at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of cultui-family-drawer at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for cultui-family-drawer
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal83.4 KB (148.8 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 1.75s
error during build:
[vite]: Rollup failed to resolve import "clsx" from "<sandbox>re-eee9236a9840/src/cut/components/ui/family-drawer.tsx".

Verdict

A credible choice for polished, multi-view drawer flows: it built and mounted cleanly, stayed contained across the tested layouts, and produced no automated accessibility findings. The tradeoff is a substantial dependency footprint for teams that only need a simple sheet.

Use it if

  • You need a compact account, household, or settings flow that moves between drawer views without replacing the surrounding page.
  • Your product already uses Vaul and utility CSS, so the component can share existing interaction and theme conventions.
  • You want controlled open state and view-change callbacks while retaining ready-made animated transitions.

Skip it if

  • You only need a basic single-panel drawer and cannot justify several animation and measurement dependencies.
  • Your design calls for a wide sheet, side panel, or full-screen mobile flow rather than this compact bottom card.
  • Your styling system cannot supply the utility classes, color tokens, and custom focus-ring token used by the source.

Install

Installation record for cultui-family-drawer
Declared dependenciesmotion, react-use-measure, vaul, @radix-ui/react-slot
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, add Motion, react-use-measure, Vaul, Radix Slot, and clsx, then provide a compatible utility CSS pipeline with the background, foreground, muted, accent, border, radius, and focus-ring classes used by the component. Keep it on the client side.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

Alternatives

Other published entries for the sheet pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.