
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@zip_co/react-datagrid
Advanced tools
A powerful, customizable React DataGrid component built with TypeScript and Tailwind CSS.
A powerful, customizable React DataGrid component built with TypeScript and Tailwind CSS.
npm install @your-org/react-datagrid
# or
yarn add @your-org/react-datagrid
# or
pnpm add @your-org/react-datagrid
This package requires the following peer dependencies:
{
"react": ">=16.8.0",
"react-dom": ">=16.8.0",
"@tanstack/react-table": ">=8.0.0"
}
import { DataGrid } from '@your-org/react-datagrid';
import { useState } from 'react';
const MyComponent = () => {
const [data, setData] = useState([
{ id: 1, name: 'John Doe', email: 'john@example.com' },
{ id: 2, name: 'Jane Smith', email: 'jane@example.com' },
]);
const columns = [
{ accessorKey: 'id', header: 'ID' },
{ accessorKey: 'name', header: 'Name' },
{ accessorKey: 'email', header: 'Email' },
];
return (
<DataGrid
data={data}
columns={columns}
state={{
sorting: [],
globalFilter: '',
columnVisibility: {},
columnOrder: [],
columnPinning: {},
rowSelection: {},
pagination: { pageIndex: 0, pageSize: 10 },
}}
onStateChange={{
setSorting: () => {},
setGlobalFilter: () => {},
setColumnVisibility: () => {},
setColumnOrder: () => {},
setColumnPinning: () => {},
setRowSelection: () => {},
setPagination: () => {},
}}
/>
);
};
Prop | Type | Default | Description |
---|---|---|---|
data | T[] | - | Array of data objects |
columns | ColumnDef<T>[] | - | Column definitions |
state | DataGridState | - | Current grid state |
onStateChange | DataGridStateChange | - | State change handlers |
dir | 'ltr' | 'rtl' | 'rtl' | Text direction |
density | 'compact' | 'normal' | 'comfortable' | 'normal' | Row density |
mobileMode | 'scroll' | 'stack' | 'scroll' | Mobile display mode |
scrollMode | 'body-only' | 'full' | 'body-only' | Scroll behavior |
paginationMode | 'pages' | 'infinite' | 'pages' | Pagination mode |
selectionMode | 'none' | 'single' | 'multiple' | 'multiple' | Row selection mode |
enableColumnDragDrop | boolean | false | Enable column reordering |
DataGrid
- Main data grid componentDataGridHeader
- Grid header componentDataGridBody
- Grid body componentDataGridCell
- Individual cell componentDataGridPagination
- Pagination componentDataGridToolbar
- Toolbar componentDataGridActions
- Actions componentuseDataGrid
- Main data grid hookuseDataGridContext
- Context hookuseDataGridState
- State management hookuseAdvancedFilter
- Advanced filtering hookuseColumnOrderDnD
- Drag and drop hookuseColumnPinningSync
- Column pinning hookuseGridTemplate
- Grid template hookuseIntersection
- Intersection observer hookThe component uses Tailwind CSS for styling. You can customize the appearance by:
classNames
propvariants
prop for different visual variants# Install dependencies
npm install
# Start development server
npm run dev
# Build the package
npm run build
# Run tests
npm test
# Run tests in watch mode
npm run test:watch
MIT License - see LICENSE file for details.
FAQs
A powerful, customizable React DataGrid component built with TypeScript and Tailwind CSS.
The npm package @zip_co/react-datagrid receives a total of 0 weekly downloads. As such, @zip_co/react-datagrid popularity was classified as not popular.
We found that @zip_co/react-datagrid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.