Measured entry

ruixen-drawer-inner-content

badgeunclassifiedmotion on file

A controlled React bottom sheet for grouped action rows, shipped as a client-side registry component. It uses Motion for spring entry, staggered content, and drag-to-dismiss behavior, while relying on inline styles rather than shadcn primitives or utility classes. Icons and open-state handling come from the consuming app.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of ruixen-drawer-inner-content at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-drawer-inner-content at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-drawer-inner-content 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 ruixen-drawer-inner-content
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious1
Axe moderate0
Axe minor0
Gzip marginal65.0 KB (130.5 KB build, 65.5 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 169ms
error during build:
[vite]: Rollup failed to resolve import "lucide-react" from "<sandbox>re-a62bec672b96/src/cut/demo.jsx".

Verdict

A polished interaction shell with a small API, successful standalone mounting, and no viewport overflow in the harness. Use it as a visual starting point, but address contrast and replace clickable divs with accessible controls before production.

Use it if

  • You need a compact action sheet inside a bounded container.
  • You want drag dismissal and animated row entry without adopting a drawer primitive library.
  • Your app can supply icons, action callbacks, and controlled open state.

Skip it if

  • You need dialog semantics, focus trapping, keyboard dismissal, or screen-reader labeling out of the box.
  • You need a portal-backed overlay that reliably escapes clipped or stacked parent containers.
  • Your dependency budget cannot justify Motion for a single action sheet.
  • You cannot revise the muted text colors that triggered the verified contrast finding.

Install

Installation record for ruixen-drawer-inner-content
Declared dependenciesmotion
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

Add Motion, copy the client component, and provide React state plus icon nodes and callbacks. No shadcn setup or utility CSS is required. A production integration should also add dialog semantics, focus management, keyboard closing, accessible action controls, and compliant theme colors.

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 badge pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.