horseman-components

v1.19.5
Components meant to be used with horseman.io projects

CircleCI David-DM

Horseman Components

Helper components for working with CMS's in react.

Installation

yarn add horseman-components

or

npm -i horseman-components

Usage

If you are using es6 you can import any of the components using

import { ComponentName } from 'horseman-components';

If using commonjs you can import components using

var ComponentName = require('horseman-components').ComponentName;

Components

RichText

Use the RichText component to render out html content from a CMS.

<RichText html={resource.richTextField} />

The RichText component internally uses react's dangerouslySetInnerHtml flag please know what you are doing.

read more here

npm i horseman-components

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 1/20/2018

Downloads