For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
/
3
Sponsor

Help Button

A circular help button with a question mark glyph.

Import

use maccn::MacHelpButton;

Usage

MacHelpButton::new("help")
    .on_click(|_, _, _| {
        println!("Help clicked");
    });

Sizes

use gpui::div;
use maccn::{MacControlSize, MacHelpButton};
 
div()
    .flex()
    .items_center()
    .gap_2()
    .child(MacHelpButton::new("help-xl").size(MacControlSize::ExtraLarge))
    .child(MacHelpButton::new("help-l").size(MacControlSize::Large))
    .child(MacHelpButton::new("help-r"))
    .child(MacHelpButton::new("help-s").size(MacControlSize::Small))
    .child(MacHelpButton::new("help-m").size(MacControlSize::Mini))

Disabled

MacHelpButton::new("help-d").disabled(true)

API

Props

PropTypeDefault
sizeMacControlSizeRegular
disabledboolfalse

Events

EventPayload
on_click(&ClickEvent, &mut Window, &mut App)