glaze/basecoat/spinner
Basecoat documentation: https://basecoatui.com/components/spinner/
Spinner attribute helpers for loading states.
Recipe
import glaze/basecoat/spinner
fn loading() {
spinner.spinner([])
}
References
- MDN ARIA
statusrole: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/status_role - MDN
aria-busy: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-busy
Values
pub fn large() -> attribute.Attribute(msg)
pub fn overlay(
attrs: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
pub fn small() -> attribute.Attribute(msg)
pub fn spinner(
attrs: List(attribute.Attribute(msg)),
) -> element.Element(msg)