Closed liamrdawson closed 3 years ago
Reopened as issues still occurring in Storybook
Cause of the issue was lack of element
arg in TextComponent.args
and also was not among the argtypes
exported from Text.stories.tsx.
TextComponent.args = {
children: 'The quick brown fox jumps over the lazy dog.',
fontSize: 'normal',
fontWeight: 'light',
element: 'p'
}
argTypes: {
element: {
control: {
type: 'select',
options: ['p', 'a']
}
},
}
Fix the below error which occurs whenever the Text component tries to render in Storybook.