Skip to content

Commit

Permalink
add story
Browse files Browse the repository at this point in the history
  • Loading branch information
bosiraphael committed Jan 31, 2025
1 parent 357a872 commit f338166
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ export const Default: Story = {
decorators: [ComponentDecorator],
};

export const WithDescription: Story = {
args: {
text: 'Menu item',
hotKeys: ['⌘', '1'],
description: 'Description',
},
decorators: [ComponentDecorator],
};

export const Catalog: CatalogStory<Story, typeof MenuItemCommand> = {
args: {
text: 'Menu item',
Expand All @@ -56,15 +65,6 @@ export const Catalog: CatalogStory<Story, typeof MenuItemCommand> = {
labels: (withIcon: boolean) =>
withIcon ? 'With left icon' : 'Without left icon',
},
{
name: 'withDescription',
values: [true, false],
props: (withDescription: boolean) => ({
description: withDescription ? 'Description' : undefined,
}),
labels: (withDescription: boolean) =>
withDescription ? 'With description' : 'Without description',
},
{
name: 'states',
values: ['default', 'hover'],
Expand Down

0 comments on commit f338166

Please sign in to comment.