README
test-ui-lib
React UI component lib
Install
yarn add test-ui-lib
Usage
import * as React from 'react';
import { MyComponent } from 'test-ui-lib';
class Example extends React.Component {
render() {
return <MyComponent meaningOfLife={42} />;
}
}
Default theme
const myTheme = {
borderRadius: '5px',
colors: {
primary: 'green',
secondary: 'blue',
},
};
License
MIT © martinmcneela
Todo
- Remove PropTypes
- Update all relevant packages
- Add styled-components
- Try to import as a private repo to app (https://help.github.com/en/github/managing-packages-with-github-packages/configuring-npm-for-use-with-github-packages)
- Add eslint
- Add prettier
- Add stylelint
- Add husky
- Add storybook (with knobs, actions, viewport, story source, docgen...etc... - https://storybook.js.org/docs/addons/addon-gallery/)
- Add testing setup
[ ] Add styled-theming (https://github.com/styled-components/styled-theming), not essential- Get gh-pages working (with storybook)
- Setup git merging/workflow rules
- Storybook Storyshots
- Storybook Docs
- Storybook knobs