{% load brickwork_components brickwork_icons i18n %}{% spaceless %} {% comment %} Filter chip (Beat Phase B, icvoss/django-brickwork#542): a compact selectable or dismissible label for filter bars and applied-state stacks. Structural include. Shares the badge intent tint grammar (neutral/info/success/warning/ danger); does NOT replace _tag_input.html's committed-tag chips (bw-combobox__chip), which stay the input's own chrome. Required: label. Optional: variant ("neutral" default | "info" | "success" | "warning" | "danger") selected (bool, default False): pressed/selected wash for filter state. dismissible (bool, default False): mounts bwDismissible() and a close control, same contract as _badge.html (hidden until Alpine init). The root is a on this path so the close control is never nested inside a {% elif selected %} {% else %} {{ label }} {% endif %} {% endwith %} {% endspaceless %}