BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn-htmx/grid

Grid

shadcn-htmx/grid
FreeComponent

An interactive data grid built on a real <table role="grid">: a single tab stop with 2-D arrow-key cell navigation (roving tabindex), Home/End to row ends, and Ctrl+Home/End to the grid corners.

Live preview

live · rendered by the registry
Rendered by shadcn-htmx on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://shadcn-htmx.productdevbook.com/r/grid.json

Source

registry/ui/grid.tsxshadcn-htmx.productdevbook.com/r/grid.json · first 6 KB
1/** @jsxImportSource hono/jsx */
2import type { PropsWithChildren } from "hono/jsx"
3import { cn, type ClassValue } from "@/registry/lib/cn"
4
5// Grid — shadcn-htmx, htmx v4 + Tailwind v4.
6//
7// An INTERACTIVE data grid: a single tab stop with 2-D arrow-key cell
8// navigation (roving tabindex). This is deliberately distinct from the
9// static <Table> component — Table is the right choice for read-only
10// tabular data (every focusable link/button stays in the tab sequence and
11// AT gets native row/column navigation). Reach for Grid only when you want
12// spreadsheet-style cell focus and a SHORTER tab sequence (the whole grid
13// is one tab stop). See the APG comparison of the two patterns.
14//
15// shadcn/ui has no Grid component — this maps to the WAI-ARIA APG Grid
16// pattern, built on a real <table> so we inherit the semantic table model
17// and only layer the grid roles + roving tabindex on top.
18//
19// Refs (read before editing):
20// repos/aria-practices/content/patterns/grid/grid-pattern.html
21// — keyboard contract + roles/states. Arrow keys move one cell; Home/End
22// jump to row ends; Ctrl+Home/End jump to the grid's first/last cell.
23// repos/aria-practices/content/patterns/grid/examples/js/dataGrid.js
24// — the reference roving-tabindex implementation we model (one cell at
25// tabindex="0", the rest at -1; setFocusPointer rolls the 0).
26// repos/mdn/files/en-us/web/html/reference/elements/table/index.md
27// repos/mdn/files/en-us/web/accessibility/aria/reference/roles/grid_role/index.md
28//
29// The ARIA contract:
30// - The container is a <table role="grid"> with an accessible name
31// (aria-label or aria-labelledby). role="grid" switches screen readers
32// into application mode so the arrow-key contract is exposed.
33// - Native <tr> carries the implicit role="row"; <th scope="col"> the
34// implicit role="columnheader"; <td> the implicit role="gridcell". We
35// keep the native elements and do NOT add aria-rowspan/colspan — per the
36// APG note, a grid built from a <table> must use HTML rowspan/colspan.
37// - Every focusable cell is marked [data-grid-cell] so the keyboard layer
38// can build its 2-D map. Exactly one carries tabindex="0"; the rest -1.
39// - If a cell contains a single interactive widget (link/button), grid
40// navigation focuses that widget directly (APG "focus an element inside
41// the cell"); otherwise it focuses the cell itself. We expose that via
42// … truncated

Facts

Registry
shadcn-htmx
Type
registry:ui
Access
Free
Files written
0
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
yesterday

Go to the source

Docs on shadcn-htmx shadcn-htmx.productdevbook.com productdevbook/shadcn-htmx on GitHub Raw registry item This item as JSON

More from shadcn-htmx

All 83 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordionshadcn-htmxComponentsFreeno deps
Active Searchactive-searchshadcn-htmxComponentsFreeno deps
Alertalertshadcn-htmxComponentsFreeno deps
Alert Dialogalert-dialogshadcn-htmxComponentsFreeno deps
Aspect Ratioaspect-ratioshadcn-htmxComponentsFreeno deps
Auto Gridauto-gridshadcn-htmxComponentsFreeno deps
Autocompleteautocompleteshadcn-htmxComponentsFreeno deps
Autosize Textareaautosize-textareashadcn-htmxComponentsFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex