trotl-table 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/index.cjs.js +5 -694
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -692
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,9 +10,11 @@ A simple, flexible **Table UI** for React — with rows drag‑and‑drop, conte
|
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
npm install trotl-table
|
|
13
|
+
# or
|
|
14
|
+
yarn add trotl-table
|
|
13
15
|
|
|
14
16
|
|
|
15
|
-
⚡
|
|
17
|
+
⚡ Quick Start
|
|
16
18
|
|
|
17
19
|
import React, { useState } from "react";
|
|
18
20
|
import { Table } from "trotl-table";
|
|
@@ -99,7 +101,7 @@ export default function Demo() {
|
|
|
99
101
|
🌟 Context Hooks
|
|
100
102
|
Use useTable to access global state:
|
|
101
103
|
|
|
102
|
-
import { useTable } from "
|
|
104
|
+
import { useTable } from "trotl-table";
|
|
103
105
|
|
|
104
106
|
function Toolbar({ tableId }) {
|
|
105
107
|
const { selectedRows, clearSelection } = useTable();
|