Skip to content

Commit

Permalink
feat(card): update storybook documentation examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Leotheluck authored and dpellier committed Jul 29, 2024
1 parent 5dbafc5 commit 59dc71e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions packages/storybook/stories/components/card/card.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@ export const Demo: StoryObj = {
},
};

export const Default: StoryObj = {
export const Slot: StoryObj = {
tags: ['isHidden'],
render: () => html`
<ods-card></ods-card>
<ods-card>
<ods-text preset="heading-6">Hello, world!</ods-text>
</ods-card>
`,
};

Expand Down Expand Up @@ -101,6 +103,10 @@ export const CustomCSS: StoryObj = {
export const Color: StoryObj = {
tags: ['isHidden'],
render: () => html`
<ods-card color="primary">
<ods-text preset="heading-6">Hello, world!</ods-text>
</ods-card>
<ods-card color="neutral">
<ods-text preset="heading-6">Hello, world!</ods-text>
</ods-card>
Expand Down
4 changes: 2 additions & 2 deletions packages/storybook/stories/components/card/documentation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ Custom Card CSS:

# Examples

## Default
## Slot

<Canvas of={ CardStories.Default } sourceState='shown' />
<Canvas of={ CardStories.Slot } sourceState='shown' />

## Color
<Canvas of={ CardStories.Color } sourceState='shown' />
Expand Down

0 comments on commit 59dc71e

Please sign in to comment.