Skip to content

Component gallery

Display

ThemeT
Mode
Mode
M
Style
Style
Y
Spacing
Spacing
Radius
Radius
Font size
Font size
Compare
Compare
Effects
S

ShortcutsAlt+Shift+key

Components

The building blocks of this site, most of them from packages/ui. Pick one to see all its stories, or change the theme and style from Display.

51 components · 317 stories

Primitives

16 components

  • Buttons

    Buttons, and links that look like them. Any variant works with any tone, and a group joins a few into one control.

    30 stories

  • Primary

    Badges

    Small labels, with the same variants and tones as buttons.

    21 stories

  • K

    Keys

    A key, or a combination in `keys`. Apple devices see ⌥ ⇧ ⌃ ⌘ for the modifiers.

    4 stories

  • Offline

    Status

    A light takes the text color unless given a tone. Pulse is off under reduced motion.

    8 stories

  • GH

    Avatars

    Initials stand in when there is no image.

    8 stories

  • Alert title

    An alert with no icon and no variant.

    Alerts

    4 stories

  • Default

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore.

    Cards

    10 stories

  • Any content goes here: settings, links or a short form.

    Dropdowns

    A native popover: opens, closes on Esc or an outside click, no JS.

    4 stories

  • Chat with Greg

    Greg Heffley
    GH

    Hi! I'm Greg.

    Greg Heffley
    GH

    Need a hand with anything?

    Corner windows

    Pinned to the viewport's corner on a page; inline here. A popover on wide screens, a bottom sheet on narrow ones.

    3 stories

  • Remove Earth?

    This also removes its 2 moons. You can't undo this.

    Dialogs

    Inline here so they can be seen; a modal centred over the page on wide screens and a bottom sheet on narrow ones. Open buttons show the real modal.

    7 stories

  • README

    ~/README.md

    Hi, I'm Jesse. I write software, mostly for the web.

    This is the plain view, a section under its title bar.

    Windows

    One app's window: a plain titled section, or framed like a window manager shows it.

    4 stories

    • README
    • Terminal
    • Projects
    • Monitor

    Taskbar

    A launcher, a button for each open window and a tray. The window manager fills the list; here it's written out. The top window's button has a rule under it, and a minimised one is italic and quieter.

    1 story

    • README
    • Terminal
    • Projects
    • Monitor

    Launcher

    A button that opens a menu of links above it. A native popover: Esc and an outside click close it, and so does choosing a link.

    1 story

    • README
    • Terminal
    • Projects
    • Monitor

    Desk icons

    A column of links, each an icon on a tile above its label. On a window manager's desk it sits at the right edge, under the windows.

    1 story

  • Progress

    Takes the tone it sits in unless given one. Attachments and carousel pips are built on it.

    8 stories

  • Scroll

    Scroll cues

    The arrow nudges, except under reduced motion.

    2 stories

Forms

6 components

  • Toggles

    5 stories

  • Selects

    3 stories

  • Inputs

    8 stories

  • Textareas

    7 stories

  • View

    Segmented controls

    Plain radios: they submit with a form and can drive CSS via :has().

    4 stories

  • cool-dashboard.pdfPDF · 2.4 MB

    Attachments

    Files attached to a form or a message, one at a time or in a row.

    18 stories

Content

8 components

  • It's not a diary, it's a journal.

    GH
    Greg HeffleyAuthor of a diary, not a journal

    Quotes

    5 stories

  • 12,48012,480

    Downloads

    Stats

    Counts up on first scroll into view, with JS.

    5 stories

  • OctNovDecJanFebMarAprMayJunJulAugSep
    MonWedFri
    2,236 contributions in the last yearLessMore

    Heatmap

    Levels from 0 to 4 on a grid of any size, optionally as a calendar. Can play the Game of Life on its cells.

    3 stories

    • Somewhere on Earth
    • UTC+1
    • Open source first

    Icon lists

    2 stories

  • Short.

    Person 1

    A quote of middling length, long enough to wrap onto a second line.

    Person 2

    A much longer quote, to show items keeping their own height. In a grid, the other items in its row would stretch to match it and leave blank space at the bottom; here they don't.

    Person 3

    Another short one.

    Person 4

    Items read down each column, then across.

    Person 5

    The last one.

    Person 6

    Masonry

    Columns of uneven items. `min` sets the narrowest column, `columns` the most there are.

    2 stories

  • What is this?

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore.

    Does it need JavaScript?

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore.

    A much longer question that wraps onto a second line at narrow widths?

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore.

    Accordion

    2 stories

  • src/lib/pointer.tsts
    /** Writes the pointer position on each subscriber, once a frame. */
    export const track = (targets: HTMLElement[]) => {
        let raf = 0;
        addEventListener("pointermove", (event) => {
            if (event.pointerType !== "mouse") return; // touch has no hover
            raf ||= requestAnimationFrame(() => {
                raf = 0;
                for (const el of targets) el.style.setProperty("--x", `${event.clientX}`);
            });
        });
    };

    Code

    Highlighted at build time by Shiki, in the palette's colors. The copy button needs JS and is absent without it.

    8 stories

  • GitHub

    github.com/example
    (opens in new tab)

    Contact methods

    7 stories site only

Chat

2 components

  • Greg Heffley09:41
    GH

    Did you finish the history project yet?

    Messages

    Chat messages, from a single bubble up to a run of messages from one sender. One is a dialogue you can click through.

    22 stories

  • GH
    Greg Heffley@greg@heffley.example·2h

    Mom says I have to keep a journal, not a diary. Totally different. Mine has a lock on it.

    Posts

    Microblog posts, as they look in a feed and boxed on their own.

    29 stories

Showcase

6 components

  • Greg Heffley

    Diary of a Wimpy Kid

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore.

    • Source
    • Website
    • Docs

    Media cards

    4 stories

  • Arch Linux

    Docker

    HTML

    NixOS

    PNPM

    Supabase

    Vite

    Arch Linux

    Docker

    HTML

    NixOS

    PNPM

    Supabase

    Vite

    Arch Linux

    Docker

    HTML

    NixOS

    PNPM

    Supabase

    Vite

    Arch Linux

    Docker

    HTML

    NixOS

    PNPM

    Supabase

    Vite

    Arduino

    Firebase

    JavaScript

    Node.js

    Python

    TailwindCSS

    Vue

    Arduino

    Firebase

    JavaScript

    Node.js

    Python

    TailwindCSS

    Vue

    Arduino

    Firebase

    JavaScript

    Node.js

    Python

    TailwindCSS

    Vue

    Arduino

    Firebase

    JavaScript

    Node.js

    Python

    TailwindCSS

    Vue

    Bun

    Git

    jQuery

    NPM

    Raspberry Pi

    TypeScript

    Yarn

    Bun

    Git

    jQuery

    NPM

    Raspberry Pi

    TypeScript

    Yarn

    Bun

    Git

    jQuery

    NPM

    Raspberry Pi

    TypeScript

    Yarn

    Bun

    Git

    jQuery

    NPM

    Raspberry Pi

    TypeScript

    Yarn

    CSS

    GitHub

    Laravel

    Nuxt 3

    React

    Ubuntu

    CSS

    GitHub

    Laravel

    Nuxt 3

    React

    Ubuntu

    CSS

    GitHub

    Laravel

    Nuxt 3

    React

    Ubuntu

    CSS

    GitHub

    Laravel

    Nuxt 3

    React

    Ubuntu

    Discord.js

    Godot

    Next.js

    PHP

    Rust

    Unreal Engine

    Discord.js

    Godot

    Next.js

    PHP

    Rust

    Unreal Engine

    Discord.js

    Godot

    Next.js

    PHP

    Rust

    Unreal Engine

    Discord.js

    Godot

    Next.js

    PHP

    Rust

    Unreal Engine

    Logos

    1 story site only

  • A small icon representing Alex's website

    88x31s

    15 stories site only

  • Any component

    A slide can hold any component. This one is a side hero.

    Greg Heffley

    Sized to fit

    The track is as tall as its tallest slide, so nothing is clipped and the frame never jumps.

    A TV test pattern

    Controls below

    Arrows, counter and pips sit in the footer, clear of slide content.

    Greg Heffley

    Keyboard ready

    Focus the track and use the arrow keys, Home or End.

    A TV test pattern

    01/

    Carousel

    Swipes and scrolls natively without JS. Autoplay pauses on hover and stops for good on focus or a press.

    3 stories

  • whoami
    jessew
    guest@cpluspatch.com:~$

    Blueprint frames

    A dashed sheet offset behind any content, which brings its own surface.

    2 stories

  • Card 1

    Same size as the rest.

    Card 2

    Same size as the rest.

    Card 3

    Same size as the rest.

    Card 4

    Same size as the rest.

    Card 5

    Same size as the rest.

    Card 6

    Same size as the rest.

    Card grids

    One, two, then three columns. A short last row is centered; narrow the preview to see two columns.

    3 stories

Media

5 components

  • A test pattern of color bars
    A test pattern, as broadcast between programs.

    Figures

    4 stories

  • 0:00 / 0:00

    Audio player

    Falls back to the browser's own player without JS.

    4 stories

  • 0:00 / 0:00

    Media player

    Falls back to the browser's own player without JS. K, J/L, M, C and F work while focus is inside.

    3 stories

  • CPlusPatch FM On air Off air
    Test Toneffmpeg
    0:00 / 0:00
    1. 1Test Toneffmpeg
    2. 2Test Pattern BluesGreg
    3. 3Untitled Demo With No CoverUnknown
    4. 4Instrumental

    Radio

    Without JS, the browser's own player for the first track, and links to each file.

    5 stories site only

  • T
    T
    @test-pattern

    Zooming into the Mandelbrot set until something happens (nothing happens) #math #fractal

    G
    G
    @greg

    Conway's Game of Life but the cells are pink

    C
    C
    @calm-pixels

    8 seconds of gradients to reset your brain

    T
    T
    @test-pattern

    Rule 110 is Turing complete and it looks like this

    Shorts

    Without JS, a feed of the browser's own players. Up/Down, K and M work while focus is inside.

    2 stories site only

Toys

3 components

  • whoami
    jessew
    uname -a
    Linux website 7.2.8-2-cachyos #1 SMP PREEMPT_DYNAMIC x86_64 GNU/Linux
    ls ~/projects
    website versia dotfiles
    cat motd.txt
    Welcome! Type a command below. Try `help` for a list of commands.
    guest@cpluspatch.com:~$

    Terminal

    4 stories site only

  • Perhaps with a mouse?Perhaps on a desktop browser?

    Destructor

    Equip the gravity gun, then click anything on the page to pull it out and throw it. Needs a mouse.

    1 story site only

  • Status unknown

    hosts up
    —
    endpoints up
    —
    alerts firing
    —

    faithplatedownEverything public

    • Matrixmatrix.cpluspatch.dev—Unknown
    • Mailfaithplate.infra.cpluspatch.com:993—Unknown
    • Nextcloudcloud.cpluspatch.com—Unknown
    • Immichphotos.cpluspatch.com—Unknown
    • Vaultwardenvault.cpluspatch.com—Unknown
    • Sharkeymk.cpluspatch.com—Unknown
    • Versiavs.cpluspatch.com—Unknown

    freemandownDatabases and monitoring

    • PostgreSQLpg_up—Unknown
    • Redisredis_up—Unknown

    elidownMinecraft

    • Minecraftmc.cpluspatch.com:25565—Unknown
    Live from Prometheus

    Status board

    Hosts and the probes run against them, with a timeline of results from a live status feed.

    7 stories site only

Sections

5 components

  • A section

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore.

    Section

    With an id, the heading names the section for screen readers.

    3 stories

  • Image on the right

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore.

    Greg Heffley

    Side hero

    2 stories

  • CPlusPatch
    HomeProjectsBlog

    Navbar

    5 stories

  • This was a triumph I'm making a note here Huge success

    Elsewhere

    • GitHubgithub.com/cpluspatch(opens in new tab)
    • Mastodon@grok@mastodon.social(opens in new tab)
    • Website(opens in new tab)
    • Emaila-rather-long-address-for-wrapping@example.com(opens in new tab)

    Friends

    • A small icon representing Alex's website
    • A small icon representing Astrid Yu's website
    • A small icon representing Lily's website
    • A small icon representing Sophari's website
    • A small icon representing Yassie's website
    • A small icon representing Lexi's website
    • A small icon representing Ari's website
    • A small icon representing Nexy's website
    • A small icon representing June's website
    • A small icon representing Noohance's website
    • A small icon representing Austin Huang's website
    • A small icon representing Virkunnen's website
    • A small icon representing Nelson's website
    • A small icon representing Abigail's website
    • A small icon representing Ginger's website

    Link back

    A cool badge with a cool description.

    © Testy McTestface 2026. Licensed under CC BY-SA 4.0.

    Footer

    1 story

  • Docs

    Guides

    • Getting started
    • Theming

    Reference

    • Tokens42
    • Components27

    Sidebar

    A collapsible menu on its own; open and sticky beside the content in a wide SidebarLayout, as on this page.

    2 stories

No component matches that. Try fewer words, or clear the filter with Escape.