A versatile table/datagrid component with built-in keyboard navigation for displaying and interacting with structured data. Use it for anything from simple read-only tables to fully interactive, spreadsheet experiences.
<nve-grid>
<nve-grid-header>
<nve-grid-column width="max-content" aria-label="single selection"></nve-grid-column>
<nve-grid-column>Column</nve-grid-column>
...
</nve-grid-header>
<nve-grid-row selected>
<nve-grid-cell>
<nve-radio>
<input type="radio" name="single-select" checked aria-label="select row 1">
</nve-radio>
</nve-grid-cell>
<nve-grid-cell>Cell</nve-grid-cell>
...
</nve-grid-row>
...
</nve-grid>
A single select datagrid allows users to choose exactly one row from a data table by providing radio buttons in the first column, ensuring only one item has a selection at a time. To enable single select, place nve-radio input as the first grid cell of each row. Set name attribute on each radio to ensure to associate the same radio group.