Components

Tape

A strip of masking, washi, kraft or cellophane tape, drawn: translucent, with slit lines along its edges, crinkles and torn or pinked ends. Stick it across a corner, use it as a label, or let Paper place it for you.

Install

terminal
npx shadcn@latest add @wobko/tape

First time here? Add the registry to components.json first. How to install

Examples

Kinds

Crepe masking tape, four printed washi patterns, gummed kraft and nearly invisible cellophane. Every strip has slit lines along its edges and crinkles where it was pressed down.

Holding a card

Tape is placed with className, like any element: absolute, a little outside the sheet, turned. The strip's own angle is seeded and never more than a few degrees.

Ends and sizes

Tear it, pink it, cut it straight. Any length and width; the middle stretches, the ends keep their teeth.

A label on tape

Write on it: put the tape behind a line of text. The strip is decoration, so the label is real text a screen reader reads.

API reference

Tape

An intrinsic svg: its size is its `length` and `height`, so it is complete in server markup and needs no measuring. Position it with className (`absolute -top-3 left-6`).

PropTypeDefaultDescription
kind"masking" | "washi-dots" | "washi-stripes" | "washi-zigzag" | "washi-gingham" | "kraft" | "clear""masking"Crepe masking tape; four printed washi patterns (dots, diagonal stripes, zigzag, gingham); gummed kraft with fiber streaks; nearly invisible cellophane.
lengthnumber72Along the strip, px.
heightnumber22Across the strip, px.
anglenumber-Degrees it lies at. Default: seeded within +-4. Clamped like a sheet's tilt (calm density lays every strip flat).
ends"saw" | "torn" | "straight" | "scissor"-How the strip ends. Default follows the kind: masking and kraft are torn with a sawtooth, washi is pinked, clear is straight.
colorAccent-Print color of a washi tape: tomato, tangerine, lemon, grass, teal, sky, grape or bubblegum.
seedstring | number-Pins the drawing: the same seed always draws the same strip.

Accessibility

  • Tape is decoration: aria-hidden, focusable=false, pointer-events: none. Never put the only copy of information on it; a label written on tape is real text next to (not inside) the svg.
  • Tape keeps its colors in Windows high contrast (it is an intrinsic ink kind).
  • Its tilt collapses to zero in calm density.

Source

The files the CLI copies into your project.

Loading the source