@budpok/smartform-components

3.3.2 • Public • Published

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 />
    );
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @budpok/smartform-components

Weekly Downloads

0

Version

3.3.2

License

none

Unpacked Size

2.42 MB

Total Files

76

Last publish

Collaborators

  • budpok