Data display that just works
A LiveView component for displaying Ash resources as tables, lists, or grids. Cinder figures out the sensible defaults for filters, sorting, and pagination so you can focus on the bits that actually matter.
This is a complete, working data table
Filters, sorting, pagination — all included. No event handlers to write.
<Cinder.collection
resource={MyApp.LostAndFound.Item}
page_size={4}
>
<:col :let={item} field="name" sort search>{item.name}</:col>
<:col :let={item} field="value" sort>{"$#{item.value}"}</:col>
<:col :let={item} field="condition" filter>
<.badge value={item.condition} />
</:col>
</Cinder.collection>
|
Name
|
Value
|
Condition
|
|---|
Features
Intelligent Filters
Cinder reads your Ash attributes and picks the right filter type. Enums become selects, dates become range pickers, booleans become checkboxes.
Multiple Layouts
Table, List, and Grid layouts with the same filtering and sorting. Switch with a single attribute.
Selection & Bulk Actions
Select rows with checkboxes and run Ash actions on all of them at once, with optional confirmation.
Relationships
Use dot notation for related fields (user.department.name). Filter and sort across associations.
Keyset Pagination
Offset pagination for simple cases, keyset pagination when you need performance on large datasets.
8 Built-in Themes
daisyUI, Flowbite, modern, dark, retro, and more. Or use the DSL to build your own theme.
URL State
One line keeps filters, sorting and the page in the URL, so every view can be bookmarked and shared.
i18n Ready
Ships with translations for 9 languages. Adding more is straightforward.
Global Search
Mark columns as searchable and get one search box that looks across all of them.
Get Started
Using Igniter
recommended$ mix igniter.install cinder
Manual Installation
mix.exs:
def deps do
[{:cinder, "~> 0.18"}]
end
$ mix deps.get $ mix cinder.install