{# @description A floating action button: daisyUI's large circular trigger reveals further actions arranged around it. Type icon="bi bi-plus-lg" aria-label="Actions" in the attributes field to give the trigger an icon and a name. #} {# @prop flower:boolean | description:"Arrange the actions in a quarter-circle instead of a column." #} {# @prop close:text | description:"Content shown in the close button's place while the FAB is open." #} {# @prop main_action:text | description:"Content shown as the primary action while the FAB is open, taking the trigger's place." #} {# @prop button:text | description:"A custom trigger, replacing the default. Must be focusable and carry tabindex, so a click opens the FAB in every browser." #} {# @prop class:text | description:"Extra classes added to the FAB wrapper. Never reaches the default trigger." #} {# @slot
Profile
— The FAB's actions, each a direct child of the wrapper. #} {# @slot:close — Content shown in the close button's place while the FAB is open, e.g. a . #} {# @slot:main_action — Content shown as the primary action while the FAB is open, e.g. a labelled . #} {# @slot:button — A custom trigger. Must be focusable and carry tabindex, so a click opens the FAB in every browser. #} {# djlint:off #}
{% if button %} {{ button }} {% else %} {% endif %} {% if close %}
{{ close }}
{% endif %} {% if main_action %}
{{ main_action }}
{% endif %} {{ slot }}
{# djlint:on #}