Skip to content

Commit

Permalink
chore: Create a story for IconButton component
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] committed Jul 23, 2024
1 parent 9395988 commit 90b19c2
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions ui/components/ui/icon-button/IconButton.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import React from 'react';
import type { Meta, StoryObj } from '@storybook/react';
import IconButton from './icon-button';

const meta: Meta<typeof IconButton> = {
title: 'UI/IconButton',
component: IconButton,
parameters: {
docs: {
// Assuming there's a README.mdx file in the same directory for documentation
page: require('./README.mdx'),
},
},
argTypes: {
onClick: {
action: 'clicked',
},
icon: {
control: 'text',
description: 'The icon to display',
},
title: {
control: 'text',
description: 'The title text for the button',
},
},
args: {
icon: 'settings',
title: 'Settings',
},
};

export default meta;

type Story = StoryObj<typeof IconButton>;

export const Default: Story = {
render: (args) => <IconButton {...args} />,
};

0 comments on commit 90b19c2

Please sign in to comment.