@times-stories/text-elements

1.2.2 • Public • Published

@times-stories/text-elements

Core styled text elements used across the template

Installation

$ yarn add @times-stories/text-elements

Usage

All components optionally take a className and style prop.

import {
  Label,
  Headline,
  Standfirst,
  Byline
} from "@times-stories/text-elements";

export default () => (
  <React.Fragment>
    <Label>Your label here</Label>
    <Headline>Your headline here</Headline>
    <Standfirst
      style={{
        color: "red"
      }}
    >
      Your standfirst here
    </Standfirst>
    <Byline className="custom-byline-class">Your byline here</Byline>
  </React.Fragment>
);

/@times-stories/text-elements/

    Package Sidebar

    Install

    npm i @times-stories/text-elements

    Weekly Downloads

    13

    Version

    1.2.2

    License

    none

    Unpacked Size

    8.82 kB

    Total Files

    6

    Last publish

    Collaborators

    • danielbenclark
    • chrishutchinson
    • flashcheeks