NV NVIDIA Elements Catalog Starters GitHub System Themes Getting Started Getting Started Installation CLI MCP Skills Lint GitHub Integrations Getting Started Angular Bundles CDN Custom Elements Eleventy Golang HTMX + Go Hugo Import Maps Lit Lit Library MCP Apps NextJS Nuxt Pi Preact React SolidJS Sphinx Svelte TypeScript Vue About What’s New Changelog Metrics Support Accessibility Contributions Requests Migration Foundations Overview Typography Iconography Themes Design Tokens Size & Space Objects Interactions Support Status Color Animation Fonts Layers Custom Layout Horizontal Vertical Grid Popovers i18n Visualization View Transitions DESIGN.md Elements Accordion Alert Avatar Badge Breadcrumb Button Button Group Card Chat Message Checkbox Codeblock Color Combobox Copy Button Datagrid Getting Started Integrations Column Action Column Alignment Column Fixed Column width Container Card Display Settings Footer Heatmap Keynav Multi Select Pagination Panel Detail Panel Grid Performance Placeholder Row Action Row Groups Row Sort Scroll Height Single Select Stripe Date Datetime Dialog Divider Dot Drawer Dropdown Dropdown Group Dropzone File Format Bytes Datetime Number Relative Time Truncate Forms Getting Started Validation Actions Control Gauge Icon Icon Button Input Input Group Logo Markdown Markdown CSS Media Controller Pause Button Playback Rate Select Mute Button Seek Button Time Range Volume Range Full-screen Button Menu Month Monaco Input Diff Input Monaco Editor Diff Editor Problems Notification Page Page Header Page Loader Pagination Progressive Filter Chip Progress Bar Progress Ring Password Preferences Input Pulse Radio Range Resize Handle Search Select Skeleton Sort Button Sparkline Star Rating Steps Switch Tabs Tag Textarea Time Toast Toggletip Toolbar Tooltip Tree Viewport Week Patterns Authentication Browse Chat Dashboard Editor Empty States Heatmap Keyboard Shortcut Logging Media Navigation Onboarding Panel Responsive Search Subheader Trend Labs Responsive Layout Viewport Container Patterns Forms API Design Properties & Attributes Slots Registration CustomEvents Stateless Composition Styles Packaging Glossary Logs Internal Guidelines Agent Harness Agent Tooling Agent Ownership Documentation Examples TypeScript Testing Unit Testing Accessibility Testing Lighthouse Testing SSR Testing Visual Testing Troubleshooting Component Creation Internal Examples All Examples

Data Grid

stable:  2.12.0 Coverage: 100.00% Bundle: 15.19kb Lighthouse: 97 Axe Core Released: 0.11.0
Overview API Examples

<nve-grid>

Properties

PropertyAttributeDescriptionValues container container

Determines the container styles of component. Flat nests the grid within other containers. Full spans the full edge-to-edge viewport width.

flat
full
stripe stripe

Determine style variant stripe rows

true
false

Slots

SlotDescription default

nve-grid-header, nve-grid-row, and nve-grid-placeholder elements.

footer

slot for grid-footer or toolbar

Methods

MethodSignaturesDescription scrollTo
scrollTo(options?: ScrollToOptions): Promise<void>scrollTo(x: number, y: number): Promise<void>

Scroll to a specific position in the grid.

CSS Properties

Css-propertyDescription --background --border-radius --box-shadow --color --font-size --row-height

fixed height of each row

--scroll-height

height of the scrollable area

<nve-grid-header>

Slots

SlotDescription default

default slot for nve-grid-column

CSS Properties

Css-propertyDescription --background --border-bottom --padding

<nve-grid-column>

Properties

PropertyAttributeDescriptionValues columnAlign column-align

Control the content alignment within a given column.

start
center
end
position position

Set the position property or attribute to fixed or sticky to make the column fixed or sticky. Fixed columns do not scroll horizontally with the grid. Sticky columns scroll horizontally with the grid until the column reaches the edge of the grid.

fixed
sticky
width width

Only set a fixed px width when you know the grid width. Most cases this should remain unset. If the total width of all columns is less than the grid width then the last column fills the remaining space. By default column widths are evenly divided unless width is explicitly provided.

string

Slots

SlotDescription default

Column heading text or controls.

actions

slot for column actions

CSS Properties

Css-propertyDescription --border-left --border-right --color --font-size --font-weight --height --justify-content --min-width --padding

<nve-grid-row>

Properties

PropertyAttributeDescriptionValues selected selected

Indicates whether an element currently holds selection within a multi-option selection group. MDN

true The element holds selection and represents the user's current choice within the group.
false The element does not hold selection and the user can choose it.

Slots

SlotDescription default

default slot for nve-grid-cell

CSS Properties

Css-propertyDescription --background --border-bottom

<nve-grid-cell>

Slots

SlotDescription default

Data or interactive controls displayed within the cell.

CSS Properties

Css-propertyDescription --background --border-left --border-right --color --font-size --font-weight --height --justify-content --min-height --min-width --padding