sigilUI

Cross Hatch

Fill a region with a repeating crosshatch pattern.

@sigil-ui/componentsReact

Preview

Structural hatching Interactive

Import

import { CrossHatch } from "@sigil-ui/components";

Usage

<div className="relative h-48 w-full overflow-hidden border border-[var(--s-border)] bg-[var(--s-surface)]">
    <CrossHatch angle={45} spacing={12} opacity={0.22} />
    <div className="absolute inset-[var(--s-space-6)] flex items-center justify-center border border-[var(--s-border-strong)] bg-[var(--s-background)] text-sm text-[var(--s-text)]">
      Infrastructure layer
    </div>
  </div>

Props

PropTypeDefaultDescription
anglenumber—Angle configuration.
spacingnumber—Spacing configuration.
colorstring—Color configuration.
opacitynumber—Opacity configuration.

Token integration

CSS VariablePurpose
--s-textText