glaze/basecoat/skeleton
Basecoat documentation: https://basecoatui.com/components/skeleton/
Skeleton placeholders for loading layouts.
Recipe
import glaze/basecoat/skeleton
import lustre/attribute
fn loading_state() {
skeleton.skeleton([attribute.class("h-4 w-full")])
}
References
- MDN ARIA
statusrole: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/status_role
Values
pub fn circle(
attrs: List(attribute.Attribute(msg)),
) -> element.Element(msg)
pub fn image(
attrs: List(attribute.Attribute(msg)),
) -> element.Element(msg)
pub fn skeleton(
attrs: List(attribute.Attribute(msg)),
) -> element.Element(msg)
pub fn text(
attrs: List(attribute.Attribute(msg)),
) -> element.Element(msg)