ui_class() html()

The classes of a user template's own markup per CSS framework driver: the Bootstrap classes under bs3 / bs4 / bs5, the class map's component under a UI plugin's driver (tw). For templates: {execute(html,ui_class,bs=pull-right;c=float;v=right)}. Escaped.

html()->ui_class($params = [])

Options

OptionMeaning
bsThe classes written under the Bootstrap drivers (byte for byte as before).
c, vThe html5fw class map component and its variant (alert / danger, col / 4, text / muted, ...).
sA size of the component (xs for btn).

Example

Muted text under any driver

Code

return '<p class="' . html()->ui_class(['bs' => 'text-muted', 'c' => 'text', 'v' => 'muted']) . '">Muted text under any driver</p>';

See also: html/alert