-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(libs/docs): add type table stories
- Loading branch information
1 parent
f2a6c8e
commit d404ef3
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import type { Meta, StoryObj } from '@storybook/react' | ||
import { TypeTable } from 'fumadocs-ui/components/type-table' | ||
|
||
const meta: Meta<typeof TypeTable> = { | ||
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<typeof TypeTable> | ||
|
||
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 => <TypeTable {...args} />, | ||
} |