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
- Text: headlines, paragraphs and links
- Rich Text: formatted HTML content
- Image: images and icons
- QR Code: a scannable code for a string
- Colored Text Pill: tags and status badges
- Card: a titled block of content
- WebView, Video and PDF: embedded media
Inputs
- Text Field: text and number input
- Checkbox and Checkbox Field
- Radio Button and Radio Button Field
- Toggle: a switch with immediate effect
- Select: a single choice from a list
- Slider: a number or a range
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.