Skip to main content
Clever Ops

Ransom Type

A ransom-note headline for React, every letter is cut from a different publication with seeded serif/mono/inverted chip treatments and a staggered paste-down entrance. Tailwind tokens, AA per chip.

Preview & code

Loading Ransom Type preview

Installation

pnpm dlx shadcn@latest add @cleverui/ransom-type

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { RansomType } from '@/components/blocks/ransom-type'
Exampletsx
import { RansomType } from '@/components/blocks/ransom-type'

export default function RansomTypeDemo() {
  return (
    <RansomType
      eyebrow="Lab · Cut and paste"
      text="No two letters agree"
      seed={11}
      description="Every glyph is clipped from a different publication, serif, mono, inverted scraps, and pasted down in a seeded scatter that never changes between visits. Hover any letter to press it flat against the page."
    />
  )
}

API reference

RansomType accepts the following props.

PropTypeDefaultDescription
eyebrowstring
text*stringthe headline, every glyph is cut from a different publication
descriptionstring
seednumber11deterministic seed for the cut treatments and paste order
accentIndexnumber0-based index (over non-space glyphs) of the accent chip; -1 for none

…plus everything from React.HTMLAttributes<HTMLElement>: className, event handlers, aria attributes and the rest pass straight through.

Frequently asked questions

How do I install the Ransom Type component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/ransom-type`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Ransom Type require?

Ransom Type has no npm dependencies beyond React and Tailwind CSS itself, so there is nothing extra to install or keep updated.

Can I theme Ransom Type to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services