SPHPlayground API
SPHPlayground
sphplayground sphplayground

Buttons

Toggle buttons

Visually ToggleButton are identical to the RadioButton toggle buttons. However, they are conveyed differently by assistive technologies: the RadioButton will be announced by screen readers as “checked”/“not checked” (since, despite their appearance, they are fundamentally still checkboxes), whereas ToggleButton will be announced as “button”/“button pressed”. [1]

Button Groups and Toolbars

ButtonGroup groups a series of buttons together on a single line or stack them in a vertical column. [2]

ToolBar combines a sets of button groups into button toolbars for more complex components. Utility classes can be used to space out groups. [3]

Link 1

Button data can be described also in other formats like PHP array or an YAML file. ToolBarBuilder and ButtonGroupBuilder are capable to transform this data to an HTML head component,