0.1.4 • Published 6 years ago

@chantelle/caption v0.1.4

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

Caption

Installation

yarn add @chantelle/caption

Usage

First, include the CSS in your HTML:

<link rel="stylesheet" href="node_modules/@chantelle/caption/dist/styles.css">

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

 import '@chantelle/caption/dist/styles.css';

React Component

import Caption from '@chantelle/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.

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago