@unbrace/components
TypeScript icon, indicating that this package has built-in type declarations

1.13.3-beta.0 • Public • Published

Unbrace components

A component library for Unbrace using React and Styled Components.

Table of Contents

Installation

Using npm
npm install @unbrace/components

Using yarn
yarn 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

Contributing

See components github page.

Readme

Keywords

none

Package Sidebar

Install

npm i @unbrace/components

Weekly Downloads

21

Version

1.13.3-beta.0

License

ISC

Unpacked Size

556 kB

Total Files

183

Last publish

Collaborators

  • internalitcodit
  • thmkae
  • laurensvc
  • jonashofmans