Catalog Filters

<.summary>

ConnieUI.Filters

Showing 2 projects:
HEEx
<div class="w-3xl">
  <ConnieUI.Filters.summary>
    <:label>Showing 2 projects</:label>
    <ConnieUI.Filters.summary_item aria_label="Remove filter: Owned by Mikkel" click={%JS{}}>
      Owned by Mikkel Sørensen
    </ConnieUI.Filters.summary_item>
    <ConnieUI.Filters.summary_item aria_label="Remove filter: Needs my attention" click={%JS{}}>
      Needs my attention
    </ConnieUI.Filters.summary_item>
  </ConnieUI.Filters.summary>
</div>

Controls

:string

Set by the example

target click class

Docs

What a filtered list is narrowed to, between the filter bar and the list, on the light brand background so a filtered list never passes for the whole one: the `label` (how much is shown), one `summary_item/1` per filter in use, and Reset filters at the far end, which pushes `reset` to `target` like `reset/1`. Render it only while something is filtered.
Attribute Type Default Description
id :string nil
target * :any
the filter LiveComponent, or nil for the LiveView
click {:struct, Phoenix.LiveView.JS} %Phoenix.LiveView.JS{ops: []}
runs before Reset filters pushes `reset`
class :any nil
Slot Slot attributes Description
:label * how much is shown, e.g. "Showing 2 projects"
inner_block one `summary_item/1` per filter in use