Measured entry
ruixen-perspective-text
A client-side React display-text component that lays selectable text on an SVG arc, then applies an inline CSS perspective transform for a road-lettering effect. It ships as a shadcn registry TSX file and depends on React plus a local cn utility backed by clsx and tailwind-merge.



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 | 29.9 KB (95.4 KB build, 65.5 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 1m 39s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/ruixen/perspective-text.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A focused, credible choice for short display headlines, with clean props and no observed runtime or accessibility failures in the prepared harness. It is not drop-in for a bare React app and needs a shadcn-style setup, especially the aliased cn utility.
Use it if
- You need a short hero headline with a static perspective treatment.
- You want the wording to remain selectable text inside SVG rather than a raster asset.
- Your project already uses shadcn conventions and a Tailwind-aware cn helper.
- You need props for curve, tilt, stretch, font family, and semantic wrapper choice.
Skip it if
- You need body copy, multiline text, or text that must reflow naturally.
- Your content includes scripts whose glyph widths or descenders do not fit its Latin-oriented geometry assumptions.
- You need exact typographic geometry across arbitrary fonts and long localized strings.
- You cannot support SVG text paths and CSS perspective transforms in your browser target.
Install
| Declared dependencies | clsx, tailwind-merge |
|---|---|
| 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, install clsx and tailwind-merge, add a cn helper, configure the at-sign source alias or change the import, and provide an inline-block utility through Tailwind or equivalent CSS. The file also expects a client-capable React build with TypeScript and SVG support.
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/ruixenui/ruixen.comAlternatives
Other published entries for the form pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- hextaui-kbdminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 29.8KB
- Bare
- pass
- Prov
- NO
- shadcn-labelunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 31.1KB
- Bare
- pass
- Prov
- NO
- neobrutalism-labelbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 31.5KB
- Bare
- pass
- Prov
- NO
- neobrutalism-nlabelbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 31.5KB
- Bare
- pass
- Prov
- NO
- shadcn-formunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 43.9KB
- Bare
- pass
- Prov
- NO
- neobrutalism-formbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 44.4KB
- Bare
- pass
- Prov
- NO