Skip to content

Commit

Permalink
hide default props as the default
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Aug 13, 2020
1 parent 972b514 commit 047173b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions example/stories/withProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import { storiesOf } from '@storybook/react';
import Simple from '../components/simple';

storiesOf('With Props', module)
.addWithJSX('No children - No options', () => (
<Simple foo="bar" test="test" value={true} />
))
.addWithJSX('No children - No options', () => <Simple />)
.addWithJSX(
'No children - Rename',
() => <Simple test="test" value={true} />,
Expand Down
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ const getDocs = (story: React.ReactElement) => {

const defaultOpts = {
skip: 0,
showDefaultProps: true,
showFunctions: true,
enableBeautify: true
};
Expand Down

0 comments on commit 047173b

Please sign in to comment.