GPUI Deck

Item

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

Rendered by GPUI’s web backend from the real component. Requires a browser with WebGPU.

item.rs groups a title, optional description, leading media, full-width header and footer, and an optional trailing action.

Item::new("recording-preset-item", "Recording preset", palette)
    .description(selected_preset_label)
    .media(record_dot)
    .header("Applies to new recordings")
    .footer(recording_date)
    .action(preset_preview_and_edit)

Its native Group is named by the title and described by the description. The text column can shrink while media and the action keep their required width; the header and footer span the frame above and below that row. The example supplies a decorative drawn record dot, a muted scope header, the selected recording date as footer, and the existing HoverCard trigger, which previews the preset on hover/focus and opens settings on ordinary activation. Its focus handle, button name, and return-focus behavior are retained.

Slots add no role, name, or focus stop; they carry only the semantics of their content. Give informative media, such as an Avatar, its own name and keep decorative shapes unnamed. Prefer drawn shapes to symbol glyphs, which depend on installed fonts. The row has no whole-row click, Tab stop, selected value, or list navigation. Supplied controls own their semantics and actions. Use Field for associated input labels and validation. A separate ItemGroup is outside the current recipe's scope. Styled can change the frame and spacing.