Easy flexible react form components based on formik
In the project directory, you can run:
To start storybook and you can do changes and you will see changes. Use this to develop new features components etc.
To build static storybook.
To use agrements put apiUrl
prop to from and very important is form id
prop because it points which agreements will be fetched.
<Form id="kdz" apiUrl="apiUrl">
<Header withBorder text="Test title" />
<Header text="Test title" type="subheader" />
<Agreemnets hasReadMore linksForReplace={linksForReplace} />
<Button type="submit" text="Send" />
</Form>
To use agrements with 'read more collaspe' use hasReadMore
prop in Agreements
component.
!Important agreement in data base should contain --MORE--
string, agreement will be splited in the --MORE--
place.
<Form id="kdz" apiUrl="apiUrl">
<Header withBorder text="Test title" />
<Header text="Test title" type="subheader" />
<Agreemnets hasReadMore linksForReplace={linksForReplace} />
<Button type="submit" text="Send" />
</Form>
made changes and commit it to master
login into npm with npm login
run npm publish
!important change package.josn
version
value to publish package
install it to your project for example yarn add finelf-form-components
see storybook stroies to get wroking examples