control.Button
Runs OnPress when pressed. Style picks normal, primary, quiet or danger, and Size the height. Without OnPress it is disabled.


save := func() {}
return basic.Column{Size: layout.MainMin, Cross: layout.CrossStart, Spacing: theme.Space12, Children: []core.Widget{
basic.Row{Size: layout.MainMin, Spacing: theme.Space8, Children: []core.Widget{
control.Button{Label: "Save", Style: control.ButtonPrimary, OnPress: save},
control.Button{Label: "Duplicate", OnPress: save},
control.Button{Label: "Learn more", Style: control.ButtonQuiet, OnPress: save},
control.Button{Label: "Delete", Style: control.ButtonDanger, OnPress: save},
}},
basic.Row{Size: layout.MainMin, Spacing: theme.Space8, Children: []core.Widget{
control.Button{Label: "Copy", Icon: icons.Copy(), OnPress: save},
control.Button{Label: "Small", Size: control.ButtonSmall, OnPress: save},
control.Button{Label: "Disabled"},
control.Button{Label: "Settings", Icon: icons.Settings(), HideLabel: true, OnPress: save},
control.Button{Label: "More", Icon: icons.More(), HideLabel: true, Style: control.ButtonQuiet, OnPress: save},
}},
}}


