Measured entry
originui-comp-131
A client-side React split button for choosing a merge strategy from a radio dropdown while keeping the selected action visible. It ships through a shadcn registry and composes local Button and DropdownMenu primitives, with React state, a Lucide icon, Radix UI, Tailwind utility classes, and theme tokens.



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 | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 58.1 KB (123.5 KB build, 65.4 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 32.77s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/components/ui/button.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A sound, accessible shell for a split action selector, but it is sample UI rather than finished workflow logic. The registry build is clean, while bare mounting fails, so it needs a shadcn-style setup and should be adopted as a pattern to wire up, not as a complete feature.
Use it if
- You need a compact primary action with a small set of mutually exclusive variants.
- Your app already uses shadcn-style Button and DropdownMenu primitives and Tailwind theme tokens.
- You are prepared to replace the sample merge labels and connect the main button to application logic.
Skip it if
- You need a finished merge control, because the supplied main button has no action handler or repository logic.
- Your design system does not use Tailwind utilities or shadcn-style local primitives.
- You want a lightweight native select and do not need a split-button interaction or descriptive menu items.
Install
| Declared dependencies | radix-ui |
|---|---|
| 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 React, Lucide React, Radix UI, Tailwind styling with the referenced theme tokens, compatible Button and DropdownMenu primitives, and the class-merging utility expected by those primitives. Configure the import aliases or rewrite them to local paths, then supply the action handler and replace the sample options.
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/origin-space/originuiAlternatives
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
- 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
- ruixen-account-menuunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 60.6KB
- Bare
- fail
- Prov
- NO