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

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)
Search Document