3.3.3 • Published 2 years ago
@scuba0624/smartform-components v3.3.3
smartform-components
Collection of smartform components. Each component is a "dumb" component in that it expects all pertinent information to be provided via props
.
Installation
npm install @wyzerrorg/smartform-components
Development
The easiest way to develop in these components is to npm link
it to your application.
For example:
cd smartform-components
npm link
npm run watch
# In another terminal
cd my-app
npm link @wyzerrorg/smartform-components
Note that webpack will have issues resolving a linked repo with peer deps. To fix, add a resolve entry for node_modules. For more info, see this link: http://webpack.github.io/docs/troubleshooting.html#npm-linked-modules-doesn-t-find-their-dependencies
Provided Smartforms (exported as default)
BINARY
BUBBLE
QUADRANT
ORBIT
Usage example
import smartformComponents from '@wyzerrorg/smartform-components';
class Foo extends React.Component {
render() {
const Component = smartformComponents.BUBBLE;
return (
<Component />
);
}
}
Provided Helpers (named exports)
SurveyPowered
SurveySplash
SurveyThankYou
Usage example
import { SurveySplash } from '@wyzerrorg/smartform-components';
class Foo extends React.Component {
render() {
return (
<SurveySplash />
);
}
}
3.3.3
2 years ago