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
NameTypeDefaultDescription
labelStringButton label text
styleButtonStyleprimaryprimary | secondary | ghost
action() -> VoidClosure executed on tap
densityDensitycomfortablecomfortable | compact | dense
localeLocaleenen | fr
Used In