Skip to content

Commit

Permalink
Feat #43 - Tag, Link components
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-dassana authored and parth-dassana committed Aug 21, 2020
1 parent c17778d commit cc37822
Show file tree
Hide file tree
Showing 11 changed files with 1,133 additions and 16 deletions.
26 changes: 26 additions & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { addDecorator, addParameters } from '@storybook/react'
import { withInfo } from '@storybook/addon-info'
import { DocsPage, DocsContainer } from '@storybook/addon-docs/blocks'
import React, { ReactNode } from 'react'

const infoOptions = {
header: false,
source: true,
propTables: false
// inline: true //uncomment for "story source" to be rendered inline
}

const storyWrapper = (story: () => ReactNode) => (
<div style={{ padding: 10 }}>{story()}</div>
)

addParameters({
docs: {
container: DocsContainer,
page: DocsPage
}
})

addDecorator(withInfo(infoOptions))

addDecorator(storyWrapper)
Loading

0 comments on commit cc37822

Please sign in to comment.