Measured entry

originui-comp-90

buttonminimal-flat

A fixed loading-state button example shipped as a shadcn registry component. It renders the shared Button in a disabled state with a spinning Lucide loader and static label, and relies on the registry Button, Radix Slot, class-variance-authority, the cn utility, and Tailwind theme classes.

Specimen
Harness screenshot of originui-comp-90 at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of originui-comp-90 at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of originui-comp-90 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-90
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal28.8 KB (94.2 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 6.98s
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 loading-button reference, but it is a fixed demo rather than a reusable async control. It needs a shadcn-style setup to build and mount, so established shadcn projects are the sensible fit.

Use it if

  • You need a compact disabled submit state with an inline activity indicator.
  • Your app already uses shadcn-style registry components and Tailwind theme tokens.
  • You want a small reference to adapt into an existing async action flow.

Skip it if

  • You need a reusable loading prop, state management, or changing status text out of the box.
  • Your design system does not use Tailwind utilities and shadcn-style aliases.
  • You want a button that remains actionable while background work continues.
  • You want to avoid adding Lucide, Radix Slot, and variant utility dependencies for a simple control.

Install

Installation record for originui-comp-90
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

A non-shadcn project must add Tailwind and the expected theme tokens, configure the source alias, provide the cn class-merging utility, and install Lucide React, Radix UI, and class-variance-authority. It must also copy or recreate the registry Button before using this example.

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 button pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.