function($prop) { $tag = trim((string)($prop['tag'] ?? 'button')); if (!in_array($tag, ['button', 'span', 'a'], true)) $tag = 'button'; $id = trim((string)($prop['id'] ?? '')); $class = trim((string)($prop['class'] ?? '')); $title = trim((string)($prop['title'] ?? '')); $icon = trim((string)($prop['icon_class'] ?? '')); $text = (string)($prop['text'] ?? ''); $attrs = trim((string)($prop['attrs'] ?? '')); $href = trim((string)($prop['href'] ?? '')); $type = trim((string)($prop['type'] ?? 'button')); ob_start(); ?> < class="ws-icon-btn">> 'Small utility icon button for shell toolbars and compact actions', ];