slackline/block/card
This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.
Attributes for block.card.
Values
pub fn actions(
actions: List(block.Element),
) -> block.Attr(block.CardBlock)
Up to 3 buttons.
pub fn body(body: block.Text) -> block.Attr(block.CardBlock)
Card content. Maximum 200 characters.
pub fn hero_image(
hero_image: block.Element,
) -> block.Attr(block.CardBlock)
The top image. Must be an image element.
pub fn icon(icon: block.Element) -> block.Attr(block.CardBlock)
A small image next to the title. Must be an image element.
Mutually exclusive with slack_icon.
pub fn slack_icon(
slack_icon: block.SlackIcon,
) -> block.Attr(block.CardBlock)
A Slack icon next to the title. Mutually exclusive with icon.
pub fn subtext(
subtext: block.Text,
) -> block.Attr(block.CardBlock)
Text below the body. Maximum 200 characters.
pub fn subtitle(
subtitle: block.Text,
) -> block.Attr(block.CardBlock)
Card subtitle. Maximum 150 characters.
pub fn title(title: block.Text) -> block.Attr(block.CardBlock)
Card title. Maximum 150 characters.