GPUI Deck

All recipes

Copyable presentation source built on the library. Install it with the local CLI and make it yours.

Alert

Inline title and description, with separate destructive styling and explicit urgency.

Aspect Ratio

Clipped media frame with a finite positive width/height ratio and application-owned content.

Attachment

Named file-metadata group with a filename, supplied media type and size, and optional existing actions.

Avatar

Named circular image with explicit fallback text, using GPUI's image loader and cache, plus an overlapping AvatarGroup with a named "+N" overflow.

Badge

Static label with secondary and accent appearances.

Bubble

Incoming/outgoing surfaces, grouped author/time labels and supplied reactions.

Button Group

Connected horizontal/vertical buttons with an optional text slot.

Card

Named region with a heading, description, header action, body, and footer.

Code Block

Read-only multiline code, an exact full-text Copy action, and bounded two-axis scrolling with keyboard access.

Data Table

Text filtering/sorting, pagination, page/row checkbox selection, column visibility, and stable-ID row actions.

Empty

Named static group with a heading, description, optional media and supplied actions.

Input Group

Shared frame around an existing input, with leading/trailing addons and horizontal/vertical layout.

Item

Named content row with a title, description, optional media, header, footer, and trailing action.

Kbd

Static named keycaps and +-joined key combinations.

Marker

One named date/status label between decorative separators, with wrapping text and no focus stop.

Message

Read-only comment with author/time metadata, a wrapping paragraph, and optional existing actions.

Pagination

Controlled previous/next buttons, current-page text, and empty/first/last-page boundaries.

Sheet

Four-edge modal presentation over Dialog, viewport-limited size, fixed header/footer, and one scrolling body.

Sidebar

Named grouped navigation, ordinary Buttons, current-page metadata, optional whole/group Collapsible state, and an optional icon rail.

Skeleton

Static decorative placeholder with application-controlled size and shape.

Spinner

Named indeterminate Progress with a rotating arc that respects GPUI's reduced-motion setting.

Trace

Expandable summary and named read-only details over the existing Collapsible lifecycle, with an optional action.

Typography

Named headings with explicit levels, paragraphs with native inline-code text runs, and independently named code elements.