Skip to main content
Clever Ops

Mask Wipe Kit

A two-panel wipe stage for React, iris, blinds, split, or sweep mask geometry scrubbed by scroll or a progress prop, a primary keyline on the wipe front. Tailwind-themed, reduced-motion honest.

Preview & code

Loading Mask Wipe Kit preview

Installation

pnpm dlx shadcn@latest add @cleverui/mask-wipe-kit

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

Usage

tsx
import { MaskWipeKit } from '@/components/blocks/mask-wipe-kit'
Exampletsx
import { MaskWipeKit } from '@/components/blocks/mask-wipe-kit'

export default function MaskWipeKitDemo() {
  return (
    <div>
      <MaskWipeKit
        wipe="iris"
        slate="Transition 02 · Iris"
        panels={[
          {
            kicker: 'Specimen 01 · Paper',
            title: 'Set in ink on gallery paper.',
            body: 'Grade the letterforms in daylight first, hairline rules, drafting marks, and one measured column of type on a near-white sheet.',
            meta: 'Meridian Grotesk · 64/68 · Proof pass 01',
            tone: 'paper',
          },
          {
            kicker: 'Specimen 02 · Ink',
            title: 'Now proof the negative.',
            body: 'Scroll carries an iris across the stage and the same specimen re-sets as a night proof. Scrub back and the paper returns, the wipe is a pure function of progress.',
            meta: 'Negative proof · Pass 02 · Reversible',
            tone: 'ink',
          },
        ]}
      />
      {/* scroll runway so the wipe has room to play in context */}
      <div aria-hidden="true" className="h-[60vh]" />
    </div>
  )
}

API reference

MaskWipeKit accepts the following props.

PropTypeDefaultDescription
wipeMaskWipeName'iris'wipe geometry that carries panel one into panel two
panels*[MaskWipePanel, MaskWipePanel]exactly two panels: [outgoing, incoming], both real content
progressnumbercontrolled progress 0–1. When set, the stage renders as a fixed-height block and the wipe follows this value; omit for the scroll-driven default.
lengthVhnumber170extra scroll runway in vh when scroll-driven (default 170)
slatestringmono slate line pinned to the stage, e.g. "Transition 02 · Iris"

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

Referenced types

Typestsx
export type MaskWipeName = 'iris' | 'blinds' | 'split' | 'sweep'

export interface MaskWipePanel {
  kicker?: string
  title: string
  body: string
  /** mono footer line under the hairline rule */
  meta?: string
  /** surface treatment, 'paper' = page surface, 'ink' = inverted plate */
  tone?: 'paper' | 'ink'
}

Frequently asked questions

How do I install the Mask Wipe Kit component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/mask-wipe-kit`. 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 Mask Wipe Kit require?

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

Can I theme Mask Wipe Kit 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