@truework/ui
v1.5.0
Published
Truework's React UI toolkit. Built with [styled-components](https://github.com/styled-components/styled-components) and [styled-system](https://github.com/styled-system/styled-system).
Downloads
324
Readme
@truework/ui
Truework's React UI toolkit. Built with styled-components and styled-system.
npm i @truework/ui --save
Usage
For docs and examples for each component, please refer to the src directory.
import { ThemeProvider, GlobalStyle } from 'styled-components'
import { theme, Box, H1, Icon } from '@truework/ui'
export default () => (
<ThemeProvider theme={theme}>
<GlobalStyle />
<Box py="sm">
<H1>Hello world!</H1>
<Icon name="Heart" />
</Box>
</ThemeProvider>
)
License
MIT License © Truework