Diagonal Box

Diagonal Box: Classic 45° hairline hatch on white — the same quiet stage used across marketing mockups and component previews. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Diagonal Box

npx motion-ui-skill add diagonal-box-pattern

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • react
  • tailwind-merge

Source files

Diagonal Box

Classic 45° hairline hatch on white — the same quiet stage used across marketing mockups and component previews.

Install

npx motion-ui-skill add diagonal-box-pattern

Dependencies

  • clsx
  • react
  • tailwind-merge

Usage

"use client";

import { DiagonalBoxPattern } from "@/components/background-pattern/diagonal-box-pattern";

export function DiagonalBoxPatternDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <DiagonalBoxPattern />
    </div>
  );
}

API Reference

DiagonalBoxPattern

Prop Type Default Required Description
className string — No Additional CSS classes

Browse this category