Skip to content

Basic

Basic components are the small building blocks of a view: they display content or take a single input. Most of them live in package presentation/ui; a few have their own package below it.

Actions

  • Button: primary, secondary and tertiary buttons
  • Filled Button: a button with a custom background color

Content

Inputs

Inputs bind to a *core.State, see the setters InputValue or InputChecked. Also pass the current value of the state to the constructor, e.g. Checkbox(checked.Get()).InputValue(checked): most inputs display the constructor value, not the state.