Skip to content

Commit

Permalink
feat(libs/docs): add type table stories
Browse files Browse the repository at this point in the history
  • Loading branch information
MFarabi619 committed Dec 16, 2024
1 parent f2a6c8e commit d404ef3
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions libs/docs/components/ui/type-table.stories.tsx
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} />,
}

0 comments on commit d404ef3

Please sign in to comment.