slackline/block/container

This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.

Attributes for block.container.

Values

pub fn block_id(
  block_id: String,
) -> block.Attr(block.ContainerBlock)

Sets block_id.

pub fn default_collapsed(
  default_collapsed: Bool,
) -> block.Attr(block.ContainerBlock)

Start collapsed (needs is_collapsible). Defaults to false.

pub fn has_header_divider(
  has_header_divider: Bool,
) -> block.Attr(block.ContainerBlock)

Draw a border below the header. Defaults to false.

pub fn icon(
  icon: block.Element,
) -> block.Attr(block.ContainerBlock)

A small image next to the title. Must be an image element.

pub fn is_collapsible(
  is_collapsible: Bool,
) -> block.Attr(block.ContainerBlock)

Whether it can be collapsed to its title. Defaults to false.

pub fn rich_text_title(
  rich_text_title: block.RichText,
) -> block.Attr(block.ContainerBlock)

Title as rich text. It takes precedence over title.

pub fn subtitle(
  subtitle: block.Text,
) -> block.Attr(block.ContainerBlock)

Subtitle. Maximum 150 characters.

pub fn title(title: String) -> block.Attr(block.ContainerBlock)

Title. Maximum 150 characters.

pub fn width(
  width: block.ContainerWidth,
) -> block.Attr(block.ContainerBlock)

Defaults to standard.

✨ Search Document