@truework/ui
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

@truework/ui npm

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

Readme

Keywords

none

Package Sidebar

Install

npm i @truework/ui

Weekly Downloads

55

Version

1.5.0

License

MIT

Unpacked Size

95.2 kB

Total Files

56

Last publish

Collaborators

  • wjohnson-truework
  • js-truework
  • manan_joshi
  • angelachang
  • truework-team