6 changed files with 1068 additions and 62 deletions
@ -0,0 +1,8 @@ |
|||
import { configure } from '@storybook/react' |
|||
|
|||
const req = require.context('../src', true, /.stories.js$/) |
|||
function loadStories() { |
|||
req.keys().forEach(filename => req(filename)) |
|||
} |
|||
|
|||
configure(loadStories, module) |
@ -0,0 +1,5 @@ |
|||
import styled from 'styled-components' |
|||
|
|||
export default styled.input` |
|||
background: red; |
|||
` |
@ -0,0 +1,8 @@ |
|||
import React from 'react' |
|||
import { storiesOf } from '@storybook/react' |
|||
|
|||
import Input from 'components/base/Input' |
|||
|
|||
const stories = storiesOf('Input', module) |
|||
|
|||
stories.add('basic', () => <Input />) |
File diff suppressed because it is too large
Loading…
Reference in new issue