Skip to content
bahtuiv0.6.0

<baht-filter>

Filter chip group. Controlled: feed selected, listen to baht-change.

Multiple (default)

<baht-filter></baht-filter>

<script>
  const el = document.querySelector('baht-filter');
  el.options = [
    {
      "key": "open",
      "label": "Open"
    },
    {
      "key": "closed",
      "label": "Closed"
    },
    {
      "key": "mine",
      "label": "Assigned to me"
    }
  ];
  el.selected = [
    "open"
  ];
</script>
NameTypeDefaultDescription
optionsJSFieldOption[][]{ key, label } chips
selectedJSstring[][]Active keys
multiplebooleantruefalse = radio behavior
disabledbooleanfalseDisable
labelstring'Filters'Accessible name for the chip group.
EventdetailDescription
nameCustomEvent
baht-change{ selected: string[] }Selection changed