Skip to Content

Scanlines

CRT scanlines texture: thin black lines aligned to the pixel grid as a full-bleed overlay inside a relative parent. Intensity steps the line strength from fine to rich, for a retro monitor look.

Installation

pnpm dlx shadcn@latest add @01orbital/scanlines

Usage

import { Scanlines } from "@/components/texture/scanlines"

export default function Example() {
  return <Scanlines />
}

Examples

Amberscanlines-amber

Scanlines Amber: an example of scanlines.

pnpm dlx shadcn@latest add @01orbital/scanlines-amber

Phosphorscanlines-phosphor

Scanlines Phosphor: an example of scanlines.

pnpm dlx shadcn@latest add @01orbital/scanlines-phosphor

API reference

Full-bleed art layer — drop inside a relative parent; sits behind content.

Prop

Type

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs it for you.

Last updated on