Overview

Statamic rocks! And so do Statamic Collections. You can effortlessly filter your entries by any field you want or sort them with just a couple of conditions. How neat is that? But there comes a time when you want to hand over this power to the users of your website. Suddenly, it's not so straightforward, right? That's where this addon comes into play.

Statamic Livewire Filters is an addon for Statamic that enables you to use Livewire to create "live" filters for your Statamic collections. It comprises a primary Livewire component and various standard filter components, which are designed to be easily editable to suit your project's needs. It allows you to filter your entries by almost any field you wish and display the results in a "live" manner, using the power of Livewire.

Features

  • Collections Livewire component that, with the help of a Statamic tag, can seamlessly your collection tags using the exact same syntax.

  • Simple and customizable filters equipped using the most common controls: Text input, Checkboxes, Radio, Select, Range, and Date.

  • Compatibility with most Statamic conditions supported by the collection tag.

  • Capability to dynamically order your collection besides filtering.

  • Livewire-enabled pagination, prebuilt and ready to use.

  • Query scopes support, including a prebuilt query scope for fields saved as an array.

  • Query string support for your filters, enhancing usability.

  • Minimal styling using TailwindCSS.

  • Multiple view options for each component, offering flexibility in presentation.

  • No JavaScript required, except for Flatpickr for the Date filter, simplifying integration.