Skip to content

Commit 0220c97

Browse files
chore(site): add TableToolbar stories (coder#12473)
Related to coder#12263
1 parent b8dd6b3 commit 0220c97

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import type { Meta, StoryObj } from "@storybook/react";
2+
import { PaginationStatus, TableToolbar } from "./TableToolbar";
3+
4+
const meta: Meta<typeof TableToolbar> = {
5+
title: "components/TableToolbar",
6+
component: TableToolbar,
7+
};
8+
9+
export default meta;
10+
type Story = StoryObj<typeof TableToolbar>;
11+
12+
export const WithPagination: Story = {
13+
args: {
14+
children: (
15+
<PaginationStatus
16+
isLoading={false}
17+
label="items"
18+
showing={10}
19+
total={100}
20+
/>
21+
),
22+
},
23+
};
24+
25+
export const WithLoadingPagination: Story = {
26+
args: {
27+
children: <PaginationStatus isLoading />,
28+
},
29+
};

0 commit comments

Comments
 (0)