lucasmarkes

Hairline Drawer

Component 22

About

An interactive isometric SVG illustration of a filing-cabinet drawer that slides out as the pointer moves over it, useful as an empty-state graphic above a heading and action button.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Hairline Drawer to your project and fits it to your theme.

Code

How Hairline Drawer is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import Drawer from "@/components/ui/hairline-drawer";

export default function DrawerDemo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-background p-10">
      <div className="flex flex-col items-center gap-3">
        <Drawer
          style={{ width: 200 }}
          label="A filing cabinet of three drawers"
        />
        <h3 className="text-base font-medium text-foreground">
          No files in this folder
        </h3>
        <button
          type="button"
          className="rounded-md border border-border px-3 py-1.5 text-sm text-foreground hover:bg-muted"
        >
          Upload a file
        </button>
      </div>
    </div>
  );
}

Dependencies

More by lucasmarkes

View all
  • Hairline Riffle

    Hairline Riffle

    126
  • Hairline Terrain

    Hairline Terrain

    60
  • Padlock

    Padlock

    51
  • Hairline Terminal

    Hairline Terminal

    47
  • Isometric Elevator

    Isometric Elevator

    44
  • Hairline Slow

    Hairline Slow

    44
  • Hairline Turntable

    Hairline Turntable

    38
  • Hairline Sieve

    Hairline Sieve

    32