Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

unbrace/components

Folders and files

NameName
Last commit message
Last commit date
Jun 5, 2020
Aug 26, 2021
Jan 21, 2020
Dec 24, 2019
Dec 24, 2019
Dec 24, 2019
Dec 26, 2019
Jan 3, 2020
Sep 6, 2021
Dec 24, 2019
May 27, 2020
Jun 1, 2022

Repository files navigation

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.