1.0.0-alpha.12 • Published 4 years ago

candi-ui v1.0.0-alpha.12

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Candi UI

Component Library for React on top of Styled Component.

Usage

Prerequisites

Candi UI requires styled-components v4+. First, install Candi UI Package and styled-components.

# yarn
$ yarn add styled-components candi-ui

# npm
$ npm install --save styled-components candi-ui

Then, you will need to apply the style resets + theme provider. Wrap your app inside the CandiProvider to ThemeProvider component provided by Candi UI, and the GlobalStyles as well.

import { CandiProvider, GlobalStyles } from 'candi-ui';

export default function MyApp({ children }) {
  return (
    <CandiProvider>
      <GlobalStyles />
      {children}
    </CandiProvider>
  );
}

Once you've applied the style resets, you can use Candi UI components in your app. See the example below.

Example

Candi UI is built in React, with styling done in styled-components. To use these components, import them as follows:

// Example for `<Text />` component.

import * as React from 'react';
import { Text } from 'candi-ui';

export default function Component() {
  return <Text>This is Text component</Text>;
}

Read the Storybook for more examples.

Maintainers

License

This project is licensed under the MIT License - see the LICENSE file for details

1.0.0-alpha.12

4 years ago

1.0.0-alpha.11

4 years ago

1.0.0-alpha.10

4 years ago

1.0.0-alpha.9

4 years ago

1.0.0-alpha.8

4 years ago

1.0.0-alpha.7

4 years ago

1.0.0-alpha.6

4 years ago

1.0.0-alpha.5

4 years ago

1.0.0-alpha.4

4 years ago

1.0.0-alpha.3

4 years ago

1.0.0-alpha.2

4 years ago

1.0.0-alpha.1

4 years ago