Measured entry

ruixen-action-toolbar

dropdownunclassified

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.

Specimen
Harness screenshot of ruixen-action-toolbar at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-action-toolbar at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-action-toolbar 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-action-toolbar
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical1
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal61.5 KB (127.0 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 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

Installation record for ruixen-action-toolbar
Declared dependencieslucide-react, radix-ui, clsx, tailwind-merge
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 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.

Alternatives

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.