Atom
Button
Click-actionable element. Emits button.ks-button. Primary usage: FilterPanel apply button. Style: crimson fill (3-state: rest → hover → pressed).
Knobs
Density
Locale
Live Preview
Code (Katagami DSL)
Button("Apply") {
viewModel.applyFilters()
}
.buttonStyle(.primary)
Props
| Name | Type | Default | Description |
|---|---|---|---|
| label | String | Button label text | |
| style | ButtonStyle | primary | primary | secondary | ghost |
| action | () -> Void | Closure executed on tap | |
| density | Density | comfortable | comfortable | compact | dense |
| locale | Locale | en | en | fr |
Used In