Measured entry

originui-comp-159

radio-groupminimal-flat

A static radio-card group with a label, sublabel, and supporting description for each choice. It ships as a shadcn registry component and composes shared Label and RadioGroup primitives backed by Radix, plus Tailwind theme tokens and the project utility helper.

Specimen
Harness screenshot of originui-comp-159 at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of originui-comp-159 at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of originui-comp-159 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-159
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal36.7 KB (102.1 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 2.85s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/components/ui/label.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A sound accessible starting point for descriptive choices, with clean responsive behavior in the harness. It needs a shadcn-style setup to build and mount as supplied, and the fixed sample content should be refactored before product use.

Use it if

  • You need mutually exclusive choices with enough context to justify a card treatment.
  • Your app already uses shadcn conventions, Tailwind theme tokens, and Radix form primitives.
  • You want the full card surface to act as the selection target while retaining native radio semantics.

Skip it if

  • Your choices are short enough for a compact inline radio list.
  • You need a reusable data-driven API rather than a fixed example with choices written directly in the component.
  • Your design system does not provide shadcn aliases, theme tokens, or the shared utility helper.

Install

Installation record for originui-comp-159
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 the Radix radio dependency, Label and RadioGroup wrappers, the class-name utility helper, the configured import alias, Tailwind processing, and matching theme tokens. Then replace the registry import paths or adapt them to your component structure.

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-13

Alternatives

Other published entries for the radio-group pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.