Combination Text

Combination Text

A mechanical combination lock that spins through characters to form words.

Installation

▸ Run the following command

npx shadcn@latest add https://www.mellowui.com/r/combination-text.json

▸ Or install manually

  1. Install dependencies: pnpm add motion
  2. Copy the source from the Code tab above.
  3. Place it at components/mellow/combination-text.tsx
  4. Import and use.

API Reference

PropTypeDefaultDescription
textsstring[]Array of strings to cycle through.
intervalnumber4000Time between word changes in milliseconds.
classNamestringAdditional CSS classes.