Loëck Vézien
7 years ago
committed by
GitHub
8 changed files with 97 additions and 30 deletions
@ -0,0 +1,12 @@ |
|||
// @flow
|
|||
|
|||
import styled from 'styled-components' |
|||
|
|||
import Box from 'components/base/Box' |
|||
|
|||
const Bar = styled(Box)` |
|||
background: ${p => p.theme.colors[p.color]}; |
|||
height: ${p => p.size || 1}px; |
|||
` |
|||
|
|||
export default Bar |
@ -0,0 +1,12 @@ |
|||
// @flow
|
|||
|
|||
import React from 'react' |
|||
|
|||
import { number } from '@storybook/addon-knobs' |
|||
import { storiesOf } from '@storybook/react' |
|||
|
|||
import Bar from 'components/base/Bar' |
|||
|
|||
const stories = storiesOf('Bar', module) |
|||
|
|||
stories.add('basic', () => <Bar size={number('size', 1)} color="grey" />) |
Loading…
Reference in new issue