Expand description
CommandLinkButton — large two-line button with icon, title, and subtitle. Used for wizard landing screens, onboarding choices, and any “card-shaped CTA” pattern.
Modeled on Qt’s QCommandLinkButton. Distinct from a regular
Button by its layout (HStack(icon + VStack(title + subtitle))) and default visual variant (Flat —
Int UI convention — with an interactive surface tint on hover).
ⓘ
CommandLinkButton::new(tr!(create_new_project()))
.description(tr!(create_new_project_subtitle()))
.icon(IconWidget::from_svg(NEW_PROJECT_ICON))
.on_activate_fn(|ctx| ctx.send_intent(AppIntent::NewProject))Structs§
- Command
Link Button - A large two-line CTA button: icon + title + subtitle.
Constants§
- COMMAND_
LINK_ BUTTON_ ICON_ SIZE - CommandLinkButton design tokens. The widget is a group-4 composite with no dedicated recipe module.
- COMMAND_
LINK_ BUTTON_ ICON_ TEXT_ GAP - COMMAND_
LINK_ BUTTON_ MIN_ HEIGHT - COMMAND_
LINK_ BUTTON_ PADDING_ HORIZONTAL - COMMAND_
LINK_ BUTTON_ PADDING_ VERTICAL - COMMAND_
LINK_ BUTTON_ TITLE_ DESCRIPTION_ GAP