Skip to content

Latest commit

 

History

History
 
 

bpk-component-content-container

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

bpk-component-content-container

Backpack content container component.

Installation

npm install bpk-component-content-container --save-dev

Usage

import React from 'react';
import BpkContentContainer from 'bpk-component-content-container';

export default () => (
  <BpkContentContainer>
    <h1>My heading</h1>
    <p>My paragraph.</p>
  </BpkContentContainer>
);

Props

Property PropType Required Default Value
children - false null
dangerouslySetInnerHTML { __html: string } false null
tagName 'article', 'aside', 'div', 'main', 'section' false 'div'
bareHtml bool false false