For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.
Best for: Course rows with thumbnails, star scores, learner avatar stacks and completion rings, where 5 of 6 data columns toggle from pill buttons
When to use
- Wide records with more fields than fit, where viewers show, hide, add or swap columns
- Table display settings a viewer changes, such as density, a sticky header or resizable and movable columns
- Role and permission matrices whose scope columns change with the selected tab
When not to use
- Tens of thousands of rows that should scroll in without page controls: use the Card Payments Ledger block
- Rows that flip to a card layout under a multi field filter row: use the Work Queue block
- A table with a fixed set of columns that no viewer needs to change: use the Data Grid component
- A long list whose main job is narrowing records through a multi field rule builder: use the Filtering blocks
- Thousands of rows loaded as the reader scrolls, with no page controls: use the Virtualization blocks
Agent notes
- Replace
COURSES, whosethumbnailvalues are picsum.photos placeholders; the status, category and search filters run on it in the browser - Row actions, the assign button and Add course only call
showCourseToast; wirehandleActionandhandleAssignto real flows - A new hideable column needs its id in
CourseProperty,DISPLAY_PROPERTIES, thevisiblePropertiesdefault and thecolumnVisibilitymemo - Every page.tsx centers the grid in a
min-h-svhmain withmax-w-7xland padding; drop that main when the grid sits in an app shell - Search and filters run in the browser over the demo array handed to
useTable; move them to your API for large tables - Column and display choices live in component
useStateand reset on reload; persist them per user when they should stick
Third-party API docs
- TanStack Table v9: API reference, docs
- Sonner v2: API reference, docs
https://web.dev.reui.io/blocks/data-grid/columns/data-grid-columns-2.mdget_block("data-grid-columns-2")npx shadcn@latest add @reui/data-grid-columns-2Shadcn Components in the Course Catalog Block
Dependencies
- @tanstack/react-table
- cn
- sonner
Shadcn Course Catalog Block
Course Catalog Data Grid with Settings Popover for Density and Column Visibility. Part of the ReUI Shadcn Data Grid Columns blocks collection.
Course catalog table with thumbnail rows, category Badge, star Rating, assignee AvatarGroup, and completion rings. Status Tabs, category Select, search, plus a Popover for density, resizable and movable columns, and column visibility. LMS admin grid.
It is composed from Avatar, Badge, Button, Data Grid, Dropdown Menu, Field, Frame, Input Group, and more, so every part of it is a primitive you can restyle with your own design tokens.
What You Can Build With the Course Catalog Block
- Install it with the ReUI registry command in the toolbar above, then swap the placeholder content, data wiring, and business logic for your own.
- Compare it across all eight ReUI styles and both the Base UI and Radix bases in the customizer before committing to one direction.
- Combine it with the other Shadcn Data Grid Columns blocks to assemble a full screen instead of a single section.
All Shadcn Data Grid Columns Blocks
The rest of this category, each on its own page with a live preview, the components it is built from, and the install command.
- Access Permissions Matrix Workspace permissions data grid with tab-swapped scope columns and per-cell access toggles
- Work Queue Work queue data grid with table and card view toggle and column display controls
- Member Display Columns Members directory data grid with toggleable display columns and view settings popover
- Company Attributes CRM companies grid with a drill-down cascader that adds real columns on demand
Related Shadcn Data Grid Block Categories
- Base (8) Complete table screens with toolbar filters and pagination for CRM, support, team, project, and pricing data.
- Advanced (8) Analytics grids with in-cell charts, KPI rollups, a tree view and an SLO chart, plus a review queue, a stock mix sheet, a pro forma and a visit planner.
- Drag & Drop (4) Drag-and-drop row and column reordering with sortable handles.
- Editing (6) Inline create, edit, and delete cells for full CRUD workflows.
- Expansion (3) Expandable parent rows with nested sub-rows and master-detail panels.
- Filtering (4) Search, faceted filters, filter builders, and status tab toolbars.
All Shadcn Block Groups
Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.
- Shadcn Application Blocks (303) Browse 303 Shadcn Application blocks across 23 categories.
- Shadcn Data Grid Blocks (47) Browse 47 Shadcn Data Grid blocks across 9 categories.
- Shadcn Charts Blocks (52) Browse 52 Shadcn Charts blocks across 10 categories.
- Shadcn Solutions Blocks (76) Browse 76 Shadcn Solutions blocks across 11 categories.
- Shadcn AI & Agents Blocks (22) Browse 22 Shadcn AI & Agents blocks across 3 categories.
- Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
- Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.
Frequently Asked Questions
When should I use the Course Catalog block?
Use it for course rows with thumbnails, star scores, learner avatar stacks and completion rings, where 5 of 6 data columns toggle from pill buttons.
The Columns category fits:
- Wide records with more fields than fit, where viewers show, hide, add or swap columns
- Table display settings a viewer changes, such as density, a sticky header or resizable and movable columns
- Role and permission matrices whose scope columns change with the selected tab
For tens of thousands of rows that should scroll in without page controls, use the Card Payments Ledger block. For rows that flip to a card layout under a multi field filter row, use the Work Queue block. For a table with a fixed set of columns that no viewer needs to change, use the Data Grid component. For a long list whose main job is narrowing records through a multi field rule builder, use the Filtering blocks. For thousands of rows loaded as the reader scrolls, with no page controls, use the Virtualization blocks.
What is the Course Catalog block built with?
Can I restyle the Course Catalog block?
How should I use Shadcn columns blocks in a real project?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.