# @times-stories/background-container

> > The background container for the `@times-stories` suite of packages

Latest version **1.1.2** (published 2019-05-07) · 0 weekly downloads

## Install

```sh
npm install @times-stories/background-container
pnpm add @times-stories/background-container
yarn add @times-stories/background-container
bun add @times-stories/background-container
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2019-05-07 |
| First published | 2019-03-20 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 16.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | chrishutchinson, flashcheeks |

## Links

- npm: https://www.npmjs.com/package/@times-stories/background-container
- npm.io page: https://npm.io/package/@times-stories/background-container

## Dependencies (3)

- [react](https://npm.io/package/react.md) ^16.6.1
- [react-dom](https://npm.io/package/react-dom.md) ^16.6.1
- [@times-stories/style-guide](https://npm.io/package/@times-stories/style-guide.md) ^1.2.2

## Recent versions

- 1.1.2 (latest) — 2019-05-07
- 1.1.1 — 2019-04-04
- 1.0.2 — 2019-03-22
- 1.0.1 — 2019-03-20
- 1.0.0 — 2019-03-20

## README

# @times-stories/background-container

> The background container for the `@times-stories` suite of packages

## Installation

```bash
$ yarn add @times-stories/background-container
```

## Usage

The `background-container` duplicates functionality from `image-container`.
For information on image placement and transition logic see
`@times-stories/image-container`.

It is also possible to display a background Brightcove video.

```js
import Story from "@times-stories/story";
import Page from "@times-stories/page";
import BackgroundContainer from "@times-stories/background-container";

export default () => (
  <Story>
    <Page>
      {props => (
        <BackgroundContainer
          {...props}
          backgroundImage={{
            src: backgroundImage,
            focusPoint: {
              x: 50,
              y: 50
            }
          }},
        />
      )}
    </Page>
  </Story>
);

export const withVideo = () => (
  <Story>
    <Page>
      {props => (
        <BackgroundContainer
          {...props}
          backgroundVideo: {
            accountId: "5436121856001",
            playerId: "H1xC44NNKb",
            videoId: "6010720526001",
          },
        />
      )}
    </Page>
  </Story>
);
```

---
_Source: https://npm.io/package/@times-stories/background-container · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
