Sigil

Button

A push button.

GUITUIRuns in the browserbutton

Preview

Button, Default, light themeButton, Default, dark theme

Usage example

fn button_demo() -> ButtonBuilder {    button("Save changes").primary()}

States

All 16 captured states, each drawn by the window host and by the terminal host.

Default

  • Button, Default, light themeButton, Default, dark theme
    Default
  • Button, Hover, light themeButton, Hover, dark theme
    Hover
  • Button, Pressed, light themeButton, Pressed, dark theme
    Pressed
  • Button, Focused, light themeButton, Focused, dark theme
    Focused
  • Button, Disabled, light themeButton, Disabled, dark theme
    Disabled

Secondary

  • Button, Secondary: Default, light themeButton, Secondary: Default, dark theme
    Default
  • Button, Secondary: Hover, light themeButton, Secondary: Hover, dark theme
    Hover
  • Button, Secondary: Pressed, light themeButton, Secondary: Pressed, dark theme
    Pressed
  • Button, Secondary: Focused, light themeButton, Secondary: Focused, dark theme
    Focused
  • Button, Secondary: Disabled, light themeButton, Secondary: Disabled, dark theme
    Disabled

Ghost

  • Button, Ghost: Default, light themeButton, Ghost: Default, dark theme
    Default
  • Button, Ghost: Hover, light themeButton, Ghost: Hover, dark theme
    Hover
  • Button, Ghost: Pressed, light themeButton, Ghost: Pressed, dark theme
    Pressed
  • Button, Ghost: Focused, light themeButton, Ghost: Focused, dark theme
    Focused
  • Button, Ghost: Disabled, light themeButton, Ghost: Disabled, dark theme
    Disabled

Pending

  • Button, Pending: Default, light themeButton, Pending: Default, dark theme
    Default

API

NameSignaturePurpose
buttonfn button(label: impl Into<TextContent>) -> ButtonBuilderA push button.