Skip to content

Commit 9b7a07a

Browse files
committed
feat(sistent): add Table component documentation
Signed-off-by: Soham Babrekar <soham.babrekar@gmail.com>
1 parent 20fd5c7 commit 9b7a07a

File tree

4 files changed

+80
-0
lines changed

4 files changed

+80
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
title: Code
3+
---
4+
5+
# Table Examples
6+
7+
## Basic Table
8+
9+
<ThemeWrapper>
10+
<CodeBlock>
11+
12+
```jsx
13+
<Table>
14+
<thead>
15+
<tr>
16+
<th>Name</th>
17+
<th>Status</th>
18+
</tr>
19+
</thead>
20+
<tbody>
21+
<tr>
22+
<td>Example</td>
23+
<td>Active</td>
24+
</tr>
25+
</tbody>
26+
</Table>
27+
```
28+
29+
</CodeBlock>
30+
</ThemeWrapper>
31+
32+
## Sortable Table
33+
34+
<ThemeWrapper>
35+
<CodeBlock>
36+
37+
```jsx
38+
<Table sortable>
39+
...
40+
</Table>
41+
```
42+
43+
</CodeBlock>
44+
</ThemeWrapper>
45+
46+
## Paginated Table
47+
48+
<ThemeWrapper>
49+
<CodeBlock>
50+
51+
```jsx
52+
<Table pagination>
53+
...
54+
</Table>
55+
```
56+
57+
</CodeBlock>
58+
</ThemeWrapper>

src/collections/sistent/components/table/guidance.mdx

Whitespace-only changes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Table
3+
---
4+
5+
# Table
6+
7+
The Table component is used to display structured data in rows and columns in a clear and organized manner.
8+
9+
## Overview
10+
11+
Tables are commonly used to present:
12+
13+
- Lists of data
14+
- Metrics and statistics
15+
- Logs and records
16+
- Configuration details
17+
18+
The Table component in Sistent supports features like sorting, pagination, and selectable rows, making it useful for handling structured datasets across Layer5 projects.

src/components/SistentNavigation/content.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,8 @@ export const content = [
160160
{ id: 118, link: "/projects/sistent/components/tooltip", text: "Tooltip" },
161161
{ id: 119, link: "/projects/sistent/components/tooltip/guidance", text: "Tooltip" },
162162
{ id: 120, link: "/projects/sistent/components/tooltip/code", text: "Tooltip" },
163+
164+
{ id: 121, link: "/projects/sistent/components/table", text: "Table" },
165+
{ id: 122, link: "/projects/sistent/components/table/guidance", text: "Table" },
166+
{ id: 123, link: "/projects/sistent/components/table/code", text: "Table" },
163167
];

0 commit comments

Comments
 (0)