{#- chirp-ui: Token input Accessible token input and listbox structure for app-owned autocomplete. -#} {% def token_input(label=none, input_id="", placeholder="", cls="") %}
{% if label %} {% end %}
{% slot tokens %} {% slot input %} {% if input_id %} {% end %}
{% slot results %}
{% end %} {% def token(label, name=none, value=none, removable=false, remove_label=none) %} {% if name is not none and value is not none %} {% end %} {{ label }} {% if removable %} {% end %} {% end %} {% def token_result(label, meta=none, active=false, href=none, cls="") %} {% if href %} {{ label }} {% if meta %}{{ meta }}{% end %} {% else %} {% end %} {% end %}