observable-framework-input-table
Input: Table
Observable Framework documentation: Input: Table Source: https://observablehq.com/framework/input-table
API · Source · The table input displays tabular data. It’s fast: rows are rendered lazily on scroll. It sorts: click a header to sort, and click again to reverse. And it selects: click a checkbox on any row, and the selected rows are exported as a view value. (And for searching, see the search input.)
By default, all columns are visible. Only the first dozen rows are initially visible, but you can scroll to see more. Column headers are fixed for readability.
Inputs.table(penguins)
To show a subset of columns, or to reorder them, pass an array of property names as the columns option. By default, columns are inferred from data.columns if present, and otherwise by iterating over the data to union the property names.
The header option lets you redefine the column title; this doesn’t change the name used to reference the data.