1.1.3 • Published 6 years ago

@chantelle/pl-caption v1.1.3

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
6 years ago

Caption

Installation

yarn add @chantelle/pl-caption

Usage

First, include the CSS in your HTML:

<link rel="stylesheet" href="node_modules/@chantelle/pl-caption/build/css/main.css">

Note: you can import the CSS directly into your project if your bundler supports it:

 import '@chantelle/pl-caption/build/css/main.css';

React Component

import Caption from '@chantelle/pl-caption';

ReactDOM.render(
  <Caption>Example Caption</Caption>,
  container
);

CSS API

To use the Caption component, add the .pl-caption to p element to apply the styles.