/components

Reusable React Components for Personal Projects

Primary LanguageJavaScriptMIT LicenseMIT

React Components

Netlify Status

I often find myself using Ant Design and customizing it a bit for my needs. Creating a repo of shared React components for use in my personal projects.

Usage

Install

cd [project_using_current_package]
yalc add @bartimaeus/components
yarn install

Example

import React, { useState } from 'react'

import { ColorPicker } from '@bartimaeus/components'

export default = () => {
  const [value, onChange] = useState('404040')
  render() {
    return <ColorPicker value={value} onChange={onChange} />
  }
}

Development

Currently, development is happening with yalc so that the package can be used locally without publishing to an npm repository.

If you don't have yalc installed, then install it locally: npm install -g yalc

  1. Install dependencies

    yarn install
  2. Start up Storybook

    yarn start
  3. Make and commit the changes

  4. Publish with yalc

    yalc publish
    cd [project_using_current_package]
    yalc update
    yarn install

License

@bartimaeus/components is MIT licensed