Loading component…
Components /Highlight Grid
Grid with a colored highlight that glides behind the hovered cell
Run the following command
npx shadcn@latest add https://raw.githubusercontent.com/Ashutoshx7/VengeanceUI/main/public/r/highlight-grid.json| Prop Name | Type | Default | Description |
|---|---|---|---|
| rows | HighlightItem[][] | Sample set | Rows of cells; each row can hold a different number of { label, color? } cells. Labels render wrapped in parentheses. |
| colors | string[] | 8-colour palette | Palette cycled for cells without an explicit color. |
| transitionDuration | number | 250 | Highlight transition duration in ms. |
| highlightFirst | boolean | true | Park the highlight on the first cell on mount. |
| className | string | - | Additional classes for the root element. |