CSS Showcase · Components

Reusable components

Each piece is a single self-contained file with no dependencies beyond React and Tailwind, styled with semantic tokens so it inherits your light and dark themes. Copy the full source and drop it into your project.

PatternButton

Four variants, three sizes, loading spinner, 44px minimum tap target on mobile.

src/components/patterns/pattern-button.tsx52 lines

PatternInput

Labelled field with hint text, error state, leading icon and wired-up a11y ids.

We only email about releases.

Name is already taken.

src/components/patterns/pattern-input.tsx55 lines

PatternCard

Container-query card: stacks in narrow slots, goes side-by-side when its own box is wide.

Case study

Container queries in production

The card reflows on its own width, so the same component works in a sidebar and a full-width grid.

Shipped
src/components/patterns/pattern-card.tsx57 lines

PatternTabs

Roving tabindex, Arrow/Home/End keys, disabled tabs skipped, scroll-snap overflow.

Panels swap without layout shift.
src/components/patterns/pattern-tabs.tsx108 lines

PatternAlert

Four tones, optional dismiss button, polite live region for screen readers.

Changes saved

Your layout is live for everyone on the team.

Trial ends soon

Add a payment method to keep your projects.
src/components/patterns/pattern-alert.tsx60 lines

PatternBadge

Status pills, dot indicators and count badges that clamp at 99+.

DraftLiveReviewFailed799+
src/components/patterns/pattern-badge.tsx44 lines

PatternEmptyState

Centered hero placeholder plus a compact inline row for tight spaces.

No uploads yet

Drop a file here or pick one from your device to get started.

Nothing in this folder

Move an item here to see it listed.

src/components/patterns/pattern-empty-state.tsx60 lines

PatternSkeleton

Shimmer placeholders in line, block, circle, card and table-row shapes.

src/components/patterns/pattern-skeleton.tsx77 lines