Skip to content

Commit

Permalink
[AAE-10214] Storybook add documentation table for stories
Browse files Browse the repository at this point in the history
  • Loading branch information
marcol13 committed Aug 10, 2022
1 parent 01014f1 commit a3199e6
Showing 1 changed file with 35 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,45 @@ export default {
argTypes: {
errorCode: {
type: 'string',
description: 'Component level Error Code',
table: {
category: 'Component Inputs',
type: {
summary: 'string'
},
defaultValue: {
summary: 'UNKNOWN'
}
},
defaultValue: '404'
},
errorCodeTranslated: {
type: 'string',
description:
'Code of translated Error - if translation doesn\'t exist then is UNKNOWN',
table: {
category: 'Component Variables',
type: {
summary: 'string'
}
},
control: {
disable: true
}
},
isAdditionalContent: {
type: 'boolean',
defaultValue: true
description: 'Enable Content Projection',
defaultValue: false,
table: {
category: 'Story Controls',
type: {
summary: 'boolean'
},
defaultValue: {
summary: false
}
}
}
}
} as Meta;
Expand Down Expand Up @@ -79,9 +113,6 @@ const template: Story = args => ({
});

export const errorKnownParamStory = template.bind({});
errorKnownParamStory.args = {
isAdditionalContent: true
};
errorKnownParamStory.argTypes = templateArgTypes;
errorKnownParamStory.decorators = [
moduleMetadata({
Expand All @@ -98,9 +129,6 @@ errorKnownParamStory.decorators = [
errorKnownParamStory.storyName = 'Error Param with Known ID';

export const errorUnknownParamStory = template.bind({});
errorUnknownParamStory.args = {
isAdditionalContent: true
};
errorUnknownParamStory.argTypes = templateArgTypes;
errorUnknownParamStory.decorators = [
moduleMetadata({
Expand Down

0 comments on commit a3199e6

Please sign in to comment.