ui/file_trigger

Types

Messages for file trigger keyboard navigation

pub type Msg {
  Activate
}

Constructors

  • Activate
pub type Size {
  Small
  Medium
  Large
}

Constructors

  • Small
  • Medium
  • Large
pub type Variant {
  Default
  Muted
}

Constructors

  • Default
  • Muted

Values

pub fn file_trigger(
  attributes: List(attribute.Attribute(a)),
  children: List(element.Element(a)),
) -> element.Element(a)
pub fn input(
  attributes: List(attribute.Attribute(a)),
) -> element.Element(a)
pub fn keymap(key_event: keyboard.KeyEvent) -> option.Option(Msg)

Keymap for file trigger keyboard navigation

Keyboard interactions:

  • Enter: Open file picker
  • Space: Open file picker

Follows WAI-ARIA Button pattern.

pub fn size(s: Size) -> attribute.Attribute(a)
Search Document