A Material Design toggle button (pp_toggle_button/1) — a button with a
boolean pressed state, filled when pressed. Combine several inside a
PhoenixPaper.ButtonGroup for a segmented toggle control (e.g. text
alignment, view mode).
Summary
Functions
Renders a toggle button. See the module doc.
Functions
Renders a toggle button. See the module doc.
Attributes
pressed(:boolean) - Defaults tofalse.color(:string) - Defaults to"primary". Must be one of"primary","secondary","tertiary", or"error".shape(:atom) - corner radius token, see PhoenixPaper.Shape. Defaults to:md. Must be one of:none,:xs,:sm,:md,:lg,:xl, or:full.ripple(:boolean) - the Material ripple effect on click/tap — off whenever paperize is false, see PhoenixPaper.Ripple. Defaults totrue.disabled(:boolean) - Defaults tofalse.type(:string) - Defaults to"button". Must be one of"button","submit", or"reset".paperize(:boolean) - Defaults totrue.class(:any) - Defaults tonil.- Global attributes are accepted. Supports all globals plus:
["form", "name", "value", "phx-click"].
Slots
inner_block(required)