0.3.1 • Published 1 year ago

@resir014/chungking-react v0.3.1

Weekly downloads
15
License
MIT
Repository
github
Last release
1 year ago

@resir014/chungking-react

@resir014's personal design system.

Install

# yarn
$ yarn add @resir014/chungking-react @emotion/react @emotion/styled
# npm
$ npm i @resir014/chungking-react @emotion/react @emotion/styled

You will also need the Feather icons set, run this command to install them:

# yarn
$ yarn add react-feather
# npm
$ npm i react-feather

Usage

First, wrap your entire app inside ChungkingProvider. This will apply the Emotion theme provider, as well as style resets.

import { ChungkingProvider } from '@resir014/chungking-react'

export default function MyApp() {
  return (
    <ChungkingProvider>
      <App />
    </ChungkingProvider>
  )
}

For Next.js, you need to set this up in pages/_app.js or pages/_app.tsx

Example

The following is an example for the Button component.

import * as React from 'react'
import { Button } from '@resir014/chungking-react'

export default function Component() {
  return <Button>Push Me</Button>
}

Developing Locally

From the root stereo directory, install the project dependencies.

$ yarn

To start developing components, you have to run the Storybook server.

$ cd packages/chungking-react
$ yarn storybook
info Storybook started on => http://localhost:6006/

The storybook server is available at http://localhost:6006. Note that any new component needs to have at least one story as a demo, and some tests.

0.3.2-canary.8

1 year ago

0.3.2-canary.7

2 years ago

0.3.2-canary.4

2 years ago

0.3.2-canary.5

2 years ago

0.3.2-canary.6

2 years ago

0.3.2-canary.2

3 years ago

0.3.2-canary.3

3 years ago

0.3.2-canary.0

3 years ago

0.3.2-canary.1

3 years ago

0.3.0

3 years ago

0.3.1

3 years ago

0.2.4-canary.2

3 years ago

0.2.4-canary.1

3 years ago

0.2.4-canary.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago