From d404ef30a89be5bc8d3e4def3993d70f8b5b675b Mon Sep 17 00:00:00 2001 From: Mumtahin Farabi Date: Sun, 15 Dec 2024 22:58:52 -0500 Subject: [PATCH] feat(libs/docs): add type table stories --- .../docs/components/ui/type-table.stories.tsx | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 libs/docs/components/ui/type-table.stories.tsx diff --git a/libs/docs/components/ui/type-table.stories.tsx b/libs/docs/components/ui/type-table.stories.tsx new file mode 100644 index 000000000..ad422c428 --- /dev/null +++ b/libs/docs/components/ui/type-table.stories.tsx @@ -0,0 +1,41 @@ +import type { Meta, StoryObj } from '@storybook/react' +import { TypeTable } from 'fumadocs-ui/components/type-table' + +const meta: Meta = { + title: '📚 Docs Site/Type Table', + component: TypeTable, + tags: ['autodocs'], + parameters: { + layout: 'centered', + }, + argTypes: { + type: { + control: 'object', + description: 'The object describing the types and their properties', + defaultValue: { + percentage: { + description: 'The percentage of scroll position to display the roll button', + type: 'number', + default: 0.2, + }, + }, + }, + }, +} + +export default meta + +type Story = StoryObj + +export const Default: Story = { + args: { + type: { + percentage: { + description: 'The percentage of scroll position to display the roll button', + type: 'number', + default: 0.2, + }, + }, + }, + render: args => , +}