{# @description One tab of a row of tabs, used inside tabs. Renders as a link when an href is given, as a radio input followed by its panel when a name is given, and as a button otherwise. #} {# @prop text:text | description:"The tab's label. A radio tab needs it for its accessible name." #} {# @prop href:text | description:"Link address. Without it the tab is a button." #} {# @prop name:text | description:"Name shared by a set of radio tabs. Given to every tab in the set; the default slot is then the tab's panel." #} {# @prop active:boolean | description:"Mark this tab as the current one." #} {# @prop disabled:boolean | description:"Show the tab as unavailable. A link loses its href and a button is disabled." #} {# @prop class:text | description:"Extra classes added to the tab." #} {# @slot — Extra content shown after the text, or the panel shown when a radio tab is selected. #} {% if href %} {{ text }}{{ slot }} {% elif name %}
{{ slot }}
{% else %} {% endif %}