Use panel
to create UI:
panel(fillX) {
// child components
}
There are two ways to add child components:
- Using factory methods
label
,button
,radioButton
,hint
,link
,note
,panel
, etc. It allows you to create consistent UI and reuse common patterns (for example,note
automatically adds required top gap).