Skip to content

Commit

Permalink
argtable edits
Browse files Browse the repository at this point in the history
  • Loading branch information
basher committed Sep 17, 2024
1 parent 5e1d43a commit 90f2941
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ui/stories/5. Components/Cards/Cards.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default {
description: 'Move image position. Only applies to fullwidth cards.',
table: {
type: { summary: 'boolean' },
defaultValue: { summary: 'Left' }
defaultValue: { summary: false }
},
},
skin: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,38 @@ export default {
},
},
argTypes: {
makeSlidesFullwidth: { control: 'boolean' },
showPrevNextButtons: { control: 'boolean' },
showSlideCount: { control: 'boolean' },
showSlideCountPips: { control: 'boolean' },
makeSlidesFullwidth: {
control: 'boolean',
description: 'Make slides take up 100% of available visible space.',
table: {
type: { summary: 'boolean' },
defaultValue: { summary: false }
},
},
showPrevNextButtons: {
control: 'boolean',
description: 'Show previous & next buttons.',
table: {
type: { summary: 'boolean' },
defaultValue: { summary: false }
},
},
showSlideCount: {
control: 'boolean',
description: 'Show slide counter.',
table: {
type: { summary: 'boolean' },
defaultValue: { summary: false }
},
},
showSlideCountPips: {
control: 'boolean',
description: 'Show slide counter as visual "pips".',
table: {
type: { summary: 'boolean' },
defaultValue: { summary: false }
},
},
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,19 @@ export default {
argTypes: {
bindEscapeKey: {
control: 'boolean',
description: 'Close with ESC key.'
description: 'Close with ESC key.',
table: {
type: { summary: 'boolean' },
defaultValue: { summary: false }
},
},
bindClickOutside: {
control: 'boolean',
description: 'Close by clicking outside'
description: 'Close by clicking outside component.',
table: {
type: { summary: 'boolean' },
defaultValue: { summary: false }
},
},
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,19 @@ export default {
notificationType: {
control: 'select',
options: ['success', 'warning', 'error'],
description: 'Notification type.',
table: {
type: { summary: 'select' },
defaultValue: { summary: 'N/A' }
},
},
hasCloseButton: {
control: 'boolean',
description: 'Show close button.',
table: {
type: { summary: 'boolean' },
defaultValue: { summary: false }
},
},
},
};
Expand Down

0 comments on commit 90f2941

Please sign in to comment.