chore(site): add TableToolbar stories (#12473)

Related to https://github.com/coder/coder/issues/12263
This commit is contained in:
Bruno Quaresma 2024-03-11 10:21:47 -03:00 committed by GitHub
parent b8dd6b3aa2
commit 0220c97ef9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
import type { Meta, StoryObj } from "@storybook/react";
import { PaginationStatus, TableToolbar } from "./TableToolbar";
const meta: Meta<typeof TableToolbar> = {
title: "components/TableToolbar",
component: TableToolbar,
};
export default meta;
type Story = StoryObj<typeof TableToolbar>;
export const WithPagination: Story = {
args: {
children: (
<PaginationStatus
isLoading={false}
label="items"
showing={10}
total={100}
/>
),
},
};
export const WithLoadingPagination: Story = {
args: {
children: <PaginationStatus isLoading />,
},
};