Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

@times-stories/background-container

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@times-stories/background-container

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

latest
npmnpm
Version
1.1.2
Version published
Weekly downloads
5
Maintainers
2
Weekly downloads
 
Created
Source

@times-stories/background-container

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

Installation

$ 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.

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>
);

FAQs

Package last updated on 07 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts