Measured entry

originui-comp-89

buttonminimal-flat

A compact Cancel and Save action pair, with a ghost treatment for the secondary action and the default treatment for the primary one. It ships as an Origin UI registry component backed by a shared React button primitive, Radix Slot, class-variance-authority, a cn helper, Tailwind utilities, and theme tokens.

Specimen
Harness screenshot of originui-comp-89 at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of originui-comp-89 at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of originui-comp-89 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-89
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal28.2 KB (93.6 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 3.90s
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, restrained action pairing that builds, mounts, and adapts cleanly in the prepared environment. Treat it as a composition example, not finished behavior. It needs a shadcn-style setup and does not mount as a bare standalone component.

Use it if

  • You need a conventional secondary and primary action row for a dialog, panel, or editor.
  • Your app already has a shadcn-style button primitive and matching Tailwind theme tokens.
  • You want a small visual pattern and will wire the labels, handlers, and pending state yourself.

Skip it if

  • You need a turnkey form control with submission logic, validation, loading feedback, or error handling.
  • You plan to drop it into a form unchanged, since the Cancel button does not declare a non-submit type.
  • Your design system does not use Tailwind utility classes or shadcn-style semantic color tokens.

Install

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

For a non-shadcn project, add Radix UI and class-variance-authority, provide the cn class-merging helper, configure the import alias, and supply Tailwind utilities with the referenced semantic theme tokens. Copy both the shared button primitive and this action-pair component, then add your own handlers and button types.

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.