ui/toast
Types
Values
pub fn description(
attributes: List(attribute.Attribute(a)),
children: List(element.Element(a)),
) -> element.Element(a)
pub fn keymap(key_event: keyboard.KeyEvent) -> option.Option(Msg)
Keymap for toast keyboard navigation
Keyboard interactions:
- Escape: Dismiss toast
Follows WAI-ARIA Status Message pattern.
pub fn size(s: Size) -> attribute.Attribute(a)
pub fn title(
attributes: List(attribute.Attribute(a)),
children: List(element.Element(a)),
) -> element.Element(a)
pub fn toast(
attributes: List(attribute.Attribute(a)),
children: List(element.Element(a)),
) -> element.Element(a)
pub fn variant(v: Variant) -> attribute.Attribute(a)