← Back

Button

[basic]

Interactive button with click handling

Button Demo

Interactive button with click handling

For the full interactive experience:

$ mix raxol.playground

Code
row style: %{gap: 2} do
  [
    button("Primary [1]", on_click: :primary),
    button("Secondary [2]", on_click: :secondary),
    button("Reset [r]", on_click: :danger)
  ]
end
demo j/k prev/next / focus demo esc back 1/42 demos