
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@paprika/data-grid
Advanced tools
DataGrid is a wrapper of react-window
yarn add @paprika/data-grid
or with npm:
npm install @paprika/data-grid
Prop | Type | required | default | Description |
---|---|---|---|---|
autofocus | bool | false | true | If the data cell should automatically get focus |
borderType | [ DataGrid.types.border.GRID, DataGrid.types.border.NONE, DataGrid.types.border.HORIZONTAL, DataGrid.types.border.VERTICAL] | false | DataGrid.types.border.GRID | Define the look for borders in the table types.DataGrid.GRID, types.DataGrid.NONE, etc. |
children | node | true | - | |
forceTableWidthWithScrollBars | bool | false | false | This will force the table to include in the calculation of the table the scrollbar thickness |
hasZebraStripes | bool | false | false | Add an alternate background on the DataGrid's rows |
data | arrayOf | false | [] | Array of data to be stored in the DataGrid |
height | number | false | 600 | Sets the height of the DataGrid |
onClick | func | false | null | Callback onClick |
onKeyDown | func | false | () => {} | Callback onKeyDown press |
onPressEnter | func | false | null | Callback when Enter key is pressed |
onPressShiftSpaceBar | func | false | null | Callback when Shift + Spacebar is pressed |
onPressSpaceBar | func | false | null | Callback when Spacebar is pressed |
onRowChecked | func | false | () => {} | Callback when user click the f key. Might change in the future |
onHighlighted | func | false | () => {} | Callback with information about the prev and next highlighted cell |
rowHeight | number | false | 36 | Sets the row height |
width | number | false | null | Sets the DataGrid width |
Prop | Type | required | default | Description |
---|---|---|---|---|
canGrow | bool | false | false | |
cell | custom | false | - | |
cellA11yText | func | false | null | |
cellProps | func | false | null | |
cellPropsResetCSS | bool | false | false | |
header | custom | false | - | |
headerA11yText | func | false | null | |
headerProps | func | false | null | |
isSticky | bool | false | false | |
onClick | func | false | () => {} | |
onPressEnter | func | false | null | |
onPressShiftSpaceBar | func | false | null | |
onPressSpaceBar | func | false | null | |
width | number | false | 182 |
Prop | Type | required | default | Description |
---|---|---|---|---|
rowsOffset | number | false | 25 | |
onReachedOffset | func | false | () => {} |
For a basic DataGrid
import DataGrid from "@paprika/data-grid";
const data = [{ column1: "1", column2: "2" }, { column1: "3", column2: "4" }, { column1: "5", column2: "6" }];
return (
<DataGrid>
<DataGrid.ColumnDefinition header="Column 1" cell="column1" />
<DataGrid.ColumnDefinition header="Column 2" cell="column2" />
</DataGrid>
);
Documentation Need to update link for documentation
More detail about these props
FAQs
DataGrid is a wrapper of react-window
The npm package @paprika/data-grid receives a total of 369 weekly downloads. As such, @paprika/data-grid popularity was classified as not popular.
We found that @paprika/data-grid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.