Last active
September 18, 2020 12:13
-
-
Save PaulieScanlon/2b4ab74673e124f4489274a03a101933 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
// import { YourComponent } from 'your-directory' | |
export default { | |
title: 'components/Hackerman-2', | |
decorators: [ | |
(Story) => ( | |
<div style={{ outline: '3px solid red' }}> | |
<Story /> | |
</div> | |
), | |
], | |
parameters: { | |
// component: YourComponent, | |
componentSubtitle: | |
'To add a global decorator, this lives in the default config option and will decorate all Stories', | |
}, | |
} | |
export const Usage = () => <input /> | |
export const OtherStory = () => <input placeholder="Boogy Time" /> | |
OtherStory.parameters = { | |
docs: { | |
description: { | |
story: '...', | |
}, | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment