glaze/oat/skeleton
Oat documentation: https://oat.ink/components/skeleton/
Skeleton placeholders for loading layouts.
Anatomy
Use line for text placeholders and box for block
placeholders. Both are convenience helpers built on skeleton.
Recipe
import glaze/oat/skeleton
[
skeleton.line([]),
skeleton.line([]),
skeleton.box([]),
]
References
- MDN ARIA
statusrole: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/status_role
Values
pub fn box(
attrs: List(attribute.Attribute(msg)),
) -> element.Element(msg)
pub fn line(
attrs: List(attribute.Attribute(msg)),
) -> element.Element(msg)
pub fn skeleton(
attrs: List(attribute.Attribute(msg)),
) -> element.Element(msg)