mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-20 13:38:25 +00:00
WA-238 Hairline layout component
This commit is contained in:
parent
59bd50d55c
commit
48a5804051
15
src/components/layout/Hairline/index.js
Normal file
15
src/components/layout/Hairline/index.js
Normal 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
|
14
src/components/layout/Hairline/index.stories.js
Normal file
14
src/components/layout/Hairline/index.stories.js
Normal 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 />)
|
Loading…
x
Reference in New Issue
Block a user