Measured entry
ruixen-action-toolbar
A client-side React action bar that renders toggleable buttons, optional count badges, and split dropdown controls from a shadcn registry item. It depends on the shadcn Button, Dropdown Menu, and Badge primitives, a cn utility, Tailwind theme classes, React state, and Lucide icons.



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.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 1 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 61.5 KB (127.0 KB build, 65.5 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written from the component source API |
What the harness recorded
BARE BUILD
✗ Build failed in 57.74s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/ruixen/action-toolbar.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A usable visual shell for an existing shadcn codebase, but not production-ready as shipped. It needs a shadcn-style setup, accessible labels for menu triggers, and a real dropdown action API before adoption.
Use it if
- You need a compact row of independent actions with optional menus and count badges.
- Your app already uses shadcn primitives, Tailwind theme tokens, and the usual cn helper.
- You are prepared to connect dropdown choices to real application behavior.
Skip it if
- You need an accessible component without modification, because the chevron-only dropdown triggers lack discernible names.
- You need dropdown item callbacks supplied through props, since the shipped items only log their labels.
- You need a true exclusive alignment or segmented control, because each action toggles independently.
- Your button list changes order after mounting, because active state is tracked by array position.
Install
| Declared dependencies | lucide-react, radix-ui, clsx, tailwind-merge |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no provider required in the harness |
In a non-shadcn project, add compatible Button, Dropdown Menu, and Badge primitives, the cn class-merging helper, Tailwind with the referenced theme tokens, Lucide React, Radix UI, clsx, and tailwind-merge. Preserve client-component support and add accessible names to the icon-only menu triggers.
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.
Author repository
github.com/ruixenui/ruixen.comAlternatives
Other published entries for the dropdown pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- tripled-context-menu-shadcnuiminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 61.1KB
- Bare
- pass
- Prov
- NO
- shadcn-dropdown-menuunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 44.4KB
- Bare
- fail
- Prov
- NO
- originui-comp-131minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 58.1KB
- Bare
- fail
- Prov
- NO
- neobrutalism-dropdown-menubrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 58.5KB
- Bare
- fail
- Prov
- NO
- shadcn-context-menuunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 58.7KB
- Bare
- fail
- Prov
- NO
- neobrutalism-context-menubrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 58.8KB
- Bare
- fail
- Prov
- NO