@datorama/marketplace-widgets
v0.4.5
Published
Datorama React components library
Downloads
24
Maintainers
Keywords
Readme
app-components
Datorama React components library
Installation
npm install --save @datorama/app-components
import { AppTheme, lightTheme } from '@datorama/app-components';
import { ThemeProvider } from 'styled-components';
const App = () => (
<AppTheme theme={lightTheme} provider={ThemeProvider}>
...
</AppTheme>
);
// CSS
// @import '~@datorama/app-components/dist/index.css';
Local Development
Clone the repo, install packages and run;
npm run storybook
Publish a new release
First, Make sure that everything is working, well documented and backward compatible. Clean up all the lint issues after running
npm run lint
In your pull request bump the package version (minor
, major
or patch
) by running:
npm version ****
After the pull request is merged to master, checkout to master and run:
npm run build:package
and to publish it to NPM:
npm publish
Importing images
With the current Rollup loader all images are loaded as components!