Skip to content

Commit

Permalink
chore(SLB-390): add more breadcrumb variants
Browse files Browse the repository at this point in the history
  • Loading branch information
Luqmaan Essop committed Jun 4, 2024
1 parent f5067bf commit 4751ce6
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions packages/ui/src/components/Molecules/Breadcrumbs.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FrameQuery, OperationExecutor } from '@custom/schema';
import { Meta } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react';
import React from 'react';

import { Default as FrameStory } from '../Routes/Frame.stories';
Expand All @@ -9,16 +9,24 @@ export default {
component: BreadCrumbs,
parameters: {
layout: 'fullscreen',
location: new URL('local:/gatsby-turbo-more-more-more'),
},
} satisfies Meta<typeof BreadCrumbs>;

export const Default = {
render: () => {
return (
<OperationExecutor executor={FrameStory.args} id={FrameQuery}>
<BreadCrumbs />
</OperationExecutor>
);
},
} satisfies Meta<typeof BreadCrumbs>;

export const Simple = {
parameters: {
location: new URL('local:/gatsby-turbo'),
},
};

export const Truncated: StoryObj<typeof BreadCrumbs> = {
parameters: {
location: new URL('local:/gatsby-turbo-more-more-more'),
},
};

0 comments on commit 4751ce6

Please sign in to comment.