{#- Props are HTML-escaped. Pass markup through the component body (slot), not through a prop. -#}
{%- set _v = variant|default('primary') -%}
{%- set _map = {'primary': 'bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500',
'secondary': 'bg-gray-200 text-gray-800 hover:bg-gray-300 focus:ring-gray-400',
'danger': 'bg-red-600 text-white hover:bg-red-700 focus:ring-red-500',
'ghost': 'bg-transparent text-gray-700 hover:bg-gray-100 focus:ring-gray-400'} -%}
{%- set _cls = _map.get(_v, _map['primary']) -%}