Responsive Table for Bricks
Rows on wide screens, cards when the table gets narrow. The table follows the width of the space it sits in, so it also turns into cards inside a sidebar or a narrow column. Resize your browser to see it.
Main column and sidebar
The same element in two places, both switching at a container width of 720px. The wide column keeps the table. The 300px sidebar shows cards, even on a large screen.
Main column
Workshop
Date
Location
Price
Spaces
Action
Always cards, three per line
Set Switch to cards at to Always cards for a card grid on every screen. It drops to a single column below 560px.
Inside a query loop
The header is fixed and one row block carries the query loop, so the table grows with the results. These rows are the documentation pages on this site, pulled with dynamic data. Cards labels, zebra stripes and hover colours all work the same way.
Documentation page
Updated
Action
Settings
Add the Responsive Table element. The first row is the header; every other row is a row of cells. Choose when it switches (container width, a Bricks breakpoint, a custom window width, always, or never), the width, how many cards per line, and the colours. Labels on the cards are copied from the header automatically.