2.0.3 • Published 5 years ago

@stellar-apps/viewport-hero v2.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@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
2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago