Skip to content

Instantly share code, notes, and snippets.

@PaulieScanlon
Last active September 18, 2020 12:13
Show Gist options
  • Save PaulieScanlon/2b4ab74673e124f4489274a03a101933 to your computer and use it in GitHub Desktop.
Save PaulieScanlon/2b4ab74673e124f4489274a03a101933 to your computer and use it in GitHub Desktop.
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