Measured entry

originui-comp-131

dropdownminimal-flat

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.

Specimen
Harness screenshot of originui-comp-131 at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of originui-comp-131 at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of originui-comp-131 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 originui-comp-131
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal58.1 KB (123.5 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 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

Installation record for originui-comp-131
Declared dependenciesradix-ui
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 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.

License
MIT
Record published
2026-08-14

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.