You can import react components directly into your project:
import React from 'react';import Button Box from 'resin-components';const Example =return<Box = ="example-button-wrapper"><Button >Click me</Button></Box>;;
Wrap your application in the
<Provider> component so that child components can correctly inherit the resin theme. You can optionally provide your own theme.
All components support styled-system attributes, allowing you to use
For an interactive demo of all components, see https://resin-io-modules.github.io/resin-components
Clone this repository and then run:
The interactive storybook can be launched by running:
npm run storybook
Code is automatically linted and formatted by Husky as a pre-commit hook.
The interactive storybook can be published by running:
npm run publish-storybook