gbr/ui/theme/lustre/button

🎛️ UI Tailwindcss Button Module

Olá, aqui temos o módulo que permite mostrarmos botões na tela utilizando lustre/element/html.button.

Types

Dados do botão.

pub type UIButton {
  Submit
  Normal
  Reset
  Link(href: String, target: option.Option(String))
}

Constructors

  • Submit
  • Normal
  • Reset
  • Link(href: String, target: option.Option(String))

Values

pub fn view(
  button: UIButton,
  theme theme: theme.UITheme(lustre.UILustre),
  attributes attributes: List(attribute.Attribute(msg)),
  elements elements: List(element.Element(msg)),
) -> element.Element(msg)

Visualizar um botão temático.

✨ Search Document