Measured entry

ruixen-perspective-text

form3d

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.

Specimen
Harness screenshot of ruixen-perspective-text at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-perspective-text at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-perspective-text 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 ruixen-perspective-text
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal29.9 KB (95.4 KB build, 65.5 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten 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

Installation record for ruixen-perspective-text
Declared dependenciesclsx, tailwind-merge
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, 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.

Alternatives

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.