@stellar-apps/viewport-hero

2.0.3 • Public • Published

@stellar-apps/viewport-hero

A Hero component that sets the viewport's height as a height.

Installation

yarn add @stellar-apps/viewport-hero

Usage

import Hero from '@stellar-apps/viewport-hero'

function HomePage (props) {
  return (
    <Hero headerID='my-header' maxHeight={900}>
      
    </Hero>
  )
}

Hero

Props

  • headerID {string}
    • default main-header
    • A header DOM id to subtract from the height of the hero. i.e. if provided and the header element's height is 96, the height of the hero will be viewportHeight - 96
  • footerID {string}
    • default null
    • A footer DOM id to subtract from the height of the hero. i.e. if provided and the footer element's height is 96, the height of the hero will be viewportHeight - 96

/@stellar-apps/viewport-hero/

    Package Sidebar

    Install

    npm i @stellar-apps/viewport-hero

    Weekly Downloads

    2

    Version

    2.0.3

    License

    MIT

    Unpacked Size

    7.46 kB

    Total Files

    14

    Last publish

    Collaborators

    • jaredlunde
    • relytmcd