HardSwan

1.1.0

A square-corner 45-degree dual-tone hatch tiled at 95px by 15px with a 135px offset.

Component data

ID
hard-swan
Category
atoms
Version
1.1.0
Added
2026-09-15
Type
component
Keyboard nav
No
Reduced motion
Yes
patterntexturehatchbackgroundatom

Dependencies

  • clsx
  • tailwind-merge

Examples

Default

<div className="h-40 w-[28rem] bg-background text-foreground">
      <HardSwan {...hardSwanMocks.default} />
    </div>

Palettes

<div className="flex w-[28rem] flex-col gap-4 bg-background text-foreground">
      <div className="h-40">
        <HardSwan {...hardSwanMocks.default} />
      </div>
      <div className="h-40">
        <HardSwan {...hardSwanMocks.dusk} />
      </div>
    </div>

WithCaption

<div className="h-40 w-[28rem] bg-background text-foreground">
      <HardSwan {...hardSwanMocks.overlay}>
        <p className="bg-card/90 px-4 py-2 text-sm font-medium text-card-foreground shadow-sm">
          Open studio hours
        </p>
      </HardSwan>
    </div>

Related