@unbrace/components
v1.13.3-beta.0
Published
Frontend components used by Unbrace
Downloads
37
Keywords
Readme
Unbrace components
A component library for Unbrace using React and Styled Components.
Table of Contents
Installation
Using npmnpm install @unbrace/components
Using yarnyarn add @unbrace/components
Usage
You can import all our components from @unbrace/components
import { Badge } from '@unbrace/components';
Theming
All components are built with styled components and a default theme. To override this default theme you need to have a <ThemeProvider>
in your app, and override the desired values as described in the components storybook.
Example
In this basic example we will override a buttons background color
Button theme schema (found in storybook)
{
button: {
color: 'red';
background: 'green';
}
Your own theme
{
button: {
// we don't need to pass color, you only have to specifiy overrides
background: 'blue';
}
}
Storybook
To run the storybook, clone the source code from the components github page.
Then run
npm run storybook
or
yarn storybook