Skip to content

Commit

Permalink
docs: [divider storybook] - remove id prop
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgoud committed Oct 24, 2023
1 parent 90198bf commit 0a5e042
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions packages/components/divider/stories/divider.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,7 @@ import type { Meta, StoryFn, Args } from '@storybook/vue3'
export default {
title: 'Components/Divider',
component: PuikDivider,
argTypes: {
id: {
description:
"Prop which will correspond to the component's html id attribute. NB: must not start with a number",
control: 'text',
table: {
type: {
summary: 'string',
},
defaultValue: {
summary: 'undefined',
},
},
},
},
args: {
id: 'puik-chip-id',
},
args: {},
} as Meta

const Template: StoryFn = (args: Args) => ({
Expand All @@ -31,7 +14,7 @@ const Template: StoryFn = (args: Args) => ({
setup() {
return { args }
},
template: `<puik-divider v-bind="args"/>`,
template: `<puik-divider />`,
})

export const Default = {
Expand All @@ -42,10 +25,10 @@ export const Default = {
source: {
code: `
<!--VueJS Snippet-->
<puik-divider id="puik-divider-id"/>
<puik-divider />
<!--HTML/CSS Snippet-->
<hr id="puik-divider-id" class="puik-divider">
<hr class="puik-divider">
`,
language: 'html',
},
Expand Down

0 comments on commit 0a5e042

Please sign in to comment.