WA-238 Hairline layout component

This commit is contained in:
apanizo 2018-05-26 09:36:59 +02:00
parent 59bd50d55c
commit 48a5804051
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,15 @@
// @flow
import * as React from 'react'
const hairlineStyle = {
width: '100%',
height: '2px',
backgroundColor: '#d5d4d6',
margin: '20px 0px',
}
const Hairline = () => (
<div style={hairlineStyle} />
)
export default Hairline

View File

@ -0,0 +1,14 @@
// @flow
import { storiesOf } from '@storybook/react'
import * as React from 'react'
import { host } from 'storybook-host'
import Component from './index'
storiesOf('Components', module)
.addDecorator(host({
title: 'Hairline',
align: 'center',
height: 5,
width: '100%',
}))
.add('Hairline', () => <Component />)