govil-helpers
v0.0.8
Published
- some functions
Downloads
1
Readme
govil-helpers
- some functions
How to use
Clone this repo to your local computer, then run:
npm install && npm run build
You can now import govil-html-description
as a normal package installed from npm like so:
import Description from 'govil-html-description';
...
You can also import the type definitions if you're using TypeScript like so:
import Description, { IHtmlDescription } from 'govil-html-description'
...
Available props
interface IHtmlDescription {
descriptionHtml: string;
}
To customise this component, pass in a viewModel to the vm
prop.
// your-component.js
import Description from 'govil-html-description'
...
<Description descriptionHtml={this.props.vm.description} />
...
This component was built for the benefit of the citizens of Israel on behalf of the government, but of course also for the benefit of the OpenSource community and freely published in npm