You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importReactfrom'react';import{storiesOf}from'@storybook/react';import{withKnobs,text,boolean,number}from'@storybook/addon-knobs';import{withInfo}from'@storybook/addon-info';importCurrencyFieldfrom'./CurrencyField';importTextFieldfrom'./TextField';constformFieldStory=storiesOf('Form Fields',module);formFieldStory.addDecorator(withKnobs);formFieldStory.add('Text Field',withInfo('Text field. Use blurCallback prop to retrieve entered string.')(()=>(<TextFieldid={text('ID','text-field1255763')}label={text('Label','Text Label')}tabIndex={number('Tab Index',0)}disabled={boolean('Disabled',false)}placeholder={text('Placeholder','Some placeholder text')}defaultValue={text('Default Value','')}maxLength={number('Maximum Number of Characters')}width={text('Width','100%')}marginBottom={text('Margin Bottom','0')}/>)));formFieldStory.add('Currency Field',withInfo('Currency field. Number gets formatted with commas after every 1000.')(()=>(<CurrencyFieldid={text('ID','currency-field123')}label={text('Label','Currency Label')}tabIndex={number('Tab Index',0)}disabled={boolean('Disabled',false)}placeholder={text('Placeholder','Some placeholder text')}maxLength={number('Maximum Number of Characters')}min={number('Minimum Number')}max={number('Maximum Number')}width={text('Width','100%')}marginBottom={text('Margin Bottom','0')}/>)));
The text was updated successfully, but these errors were encountered:
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!
I created a story file that imports multiple components. The story will work fine if I import just one component.
For example, I imported CurrencyField and TextField.
I expect the story source to display
<CurrencyField>
and<TextField>
but I get<b>
instead.I also expect the Prop Types table to display
<CurrencyField>
and<TextField>
but I get "b" Component instead.Steps to reproduce
"@storybook/addon-a11y": "^3.4.11",
"@storybook/addon-actions": "^3.4.11",
"@storybook/addon-info": "^3.4.11",
"@storybook/addon-knobs": "^3.4.11",
"@storybook/addon-notes": "^3.4.11",
"@storybook/addon-options": "^3.4.11",
"@storybook/addon-viewport": "^3.4.11",
"@storybook/addons": "^3.4.11",
"@storybook/react": "^3.4.11",
Screenshots / Screencast / Code Snippets (Optional)
The text was updated successfully, but these errors were encountered: