Measured entry
originui-comp-85
A compact ghost-style back button with a Lucide left-arrow icon that shifts on hover. It ships as a shadcn registry component and composes the shared Button primitive, so it inherits that primitive's Radix Slot, variant helper, utility function, and Tailwind theme setup.



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 | 14.6 KB (80.0 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 4.50s error during build: [vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>/src/components/ui/button.tsx".
Verdict
A sensible, focused back-action treatment with clean semantics and a modest hover cue. It mounts cleanly in its intended environment, but it needs a shadcn-style setup and is not a drop-in component for a bare React project.
Use it if
- You need a restrained back action for a header, detail view, or nested workflow.
- Your app already uses the matching shadcn Button primitive and utility conventions.
- You want the whole control to remain a semantic button while keeping the arrow decorative.
Skip it if
- Your navigation requires a real link and you do not plan to render the Button primitive through its child-slot option.
- Your project does not use Tailwind theme tokens or shadcn-style component utilities.
- You need a standalone button with no shared primitive or icon-library dependencies.
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 Lucide React, Radix UI, class-variance-authority, a compatible Button primitive, the cn class-merging utility, Tailwind styles and theme tokens, then replace the registry import alias with your local path.
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 button pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- neu-buttonneumorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 17.8KB
- Bare
- pass
- Prov
- NO
- clay-buttonclaymorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 18.2KB
- Bare
- pass
- Prov
- NO
- tripled-animated-radio-shadcnuiminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 58.2KB
- Bare
- pass
- Prov
- NO
- ruixen-glow-link-buttonliquid-glass
- Renders
- YES
- A11y
- 0
- Gzip
- 58.9KB
- Bare
- pass
- Prov
- NO
- tripled-mood-gradient-button-shadcnuigradient-glow
- Renders
- YES
- A11y
- 0
- Gzip
- 59.2KB
- Bare
- pass
- Prov
- NO
- ruixen-glass-ai-cardliquid-glass
- Renders
- YES
- A11y
- 0
- Gzip
- 59.5KB
- Bare
- pass
- Prov
- NO