{# @description daisyUI's select: a drop-down list of options, its default slot. size is daisyUI's scale, not the native row count, and a control still needs a c-form.label, an aria-label or an aria-labelledby for its accessible name. With start or end filled, the content sits inside the box before or after the field, as the text input's does; a floating label always sits in its floated position around a select. See the fieldset gallery entry for labelled, wrapped, disabled and invalid examples. #} {# @prop variant:select['neutral','primary','secondary','accent','info','success','warning','error'] | description:"Colour variant." #} {# @prop size:select['xs','sm','md','lg','xl'] | description:"Select size. daisyUI's scale, not the native row count." #} {# @prop ghost:boolean | description:"Draw the select with no background until focused." #} {# @prop start:text | description:"Content inside the box before the field. Give it as the start slot; this declaration keeps a page variable of the same name out of the box." #} {# @prop end:text | description:"Content inside the box after the field. Give it as the end slot; this declaration keeps a page variable of the same name out of the box." #} {# @prop class:text | description:"Extra classes added to the select, or to the wrapper when start or end is filled." #} {# @slot — The select's options, rendered inside it. #} {# @slot:start — Content inside the box before the field: daisyUI's inline label written as a span with class label, an icon or a keyboard hint. #} {# @slot:end — Content inside the box after the field. #} {% load daisy_cotton %} {# djlint:off #} {% if start or end %}{% else %}{% endif %} {# djlint:on #}