@times-stories/end-page

1.2.2 • Public • Published

@times-stories/end-page

The End page template for the @times-stories suite of packages

Installation

$ yarn add @times-stories/end-page

Usage

import Story from "@times-stories/story";
import Page from "@times-stories/page";
import EndPage from "@times-stories/end-page";

const topics = [
  { name: "Topic 1", slug: "topic-1" },
  { name: "Topic 2", slug: "topic-2" }
];

export default () => (
  <Story>
    <Page>
      {props => (
        <EndPage
          {...props}
          articleId="1234-1234-1234"
          headline="This is the headline"
          topics={topics}
        />
      )}
    </Page>
  </Story>
);

Readme

Keywords

none

Package Sidebar

Install

npm i @times-stories/end-page

Weekly Downloads

1

Version

1.2.2

License

none

Unpacked Size

11.8 kB

Total Files

6

Last publish

Collaborators

  • danielbenclark
  • chrishutchinson
  • flashcheeks