glaze/basecoat/item
Basecoat documentation: https://basecoatui.com/components/item/
Item helpers for list rows and compact content blocks.
Use items for settings rows, search results, command-style lists, or any repeated row content.
Anatomy
item/item_link: the row containericon,avatar,image: leading visualscontent: title/description stackactions: trailing controls
Recipe
import glaze/basecoat/item
import lustre/element/html
fn my_item() {
item.item([], [
item.title([], [html.text("My Item")]),
item.description([], [html.text("Item description here.")]),
])
}
Values
pub fn actions(
attrs: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
pub fn avatar(
src: String,
alt: String,
attrs: List(attribute.Attribute(msg)),
) -> element.Element(msg)
pub fn content(
attrs: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
pub fn default() -> attribute.Attribute(msg)
pub fn description(
attrs: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
pub fn group(
attrs: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
pub fn icon(
attrs: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
pub fn image(
src: String,
alt: String,
attrs: List(attribute.Attribute(msg)),
) -> element.Element(msg)
pub fn item(
attrs: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
pub fn item_link(
href: String,
attrs: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
pub fn muted() -> attribute.Attribute(msg)
pub fn outline() -> attribute.Attribute(msg)
pub fn separator() -> element.Element(msg)
pub fn title(
attrs: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)