slackline/element/button
This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.
Attributes for element.button.
Values
pub fn accessibility_label(
accessibility_label: String,
) -> block.Attr(block.ButtonElement)
Text read by screen readers instead of text. Maximum 75 characters.
pub fn agent_prompt(
agent_prompt: String,
) -> block.Attr(block.ButtonElement)
A prompt sent to Slackbot when clicked, if Slackbot AI is available. Up to 4000 characters.
pub fn agent_prompt_display(
agent_prompt_display: String,
) -> block.Attr(block.ButtonElement)
Short text shown instead of the full agent_prompt. Requires
agent_prompt.
pub fn confirm(
confirm: block.ConfirmationDialog,
) -> block.Attr(block.ButtonElement)
A confirmation dialog shown after the button is clicked.
pub fn style(
style: block.ButtonStyle,
) -> block.Attr(block.ButtonElement)
Visual color scheme. Defaults to the default (neutral) style.
pub fn url(url: String) -> block.Attr(block.ButtonElement)
A URL to open in the user’s browser when the button is clicked. You still receive an interaction payload and must acknowledge it.
pub fn value(value: String) -> block.Attr(block.ButtonElement)
The value sent with the interaction payload. Maximum 2000 characters.
pub fn visible_to_user_ids(
visible_to_user_ids: List(String),
) -> block.Attr(block.ButtonElement)
User IDs the button is visible to. Visible to everyone if omitted.