@cimpress/react-components

React components to support the MCP styleguide

Stats

StarsIssuesVersionUpdatedCreatedSize
@cimpress/react-components
15.1.1a month ago4 years agoMinified + gzip package size for @cimpress/react-components in KB

Readme

MCP MEX React Components

About

React components to support the MCP UX style guide. Hopefully they make your life easier.

Want to see what's happened lately? Check the changelog for the latest updates. If you're looking for a concise summary of how to update to the latest version, check out the migration document.

Development

  • Clone this repo
  • Run npm install
  • This project is powered by Webpack (v4) with webpack-dev-server and hot module replacement.
  • Run npm start and navigate to localhost:8080 in your browser.

Using

You can install this package from NPM under the name @cimpress/react-components, like so:

npm install @cimpress/react-components

Make sure you've included the stylesheet links in your index.html, or check out the CssLoader component if you'd like to be kept up-to-date automatically.

To reduce bundle size, import only the component you want, for example:

import Alert from '@cimpress/react-components/lib/Alert';
// Or if using a tree shaking bundler like webpack:
import {Alert} from '@cimpress/react-components';

A sample page with documentation for all components is available here.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.