@comparaonline/ui-hero-header
TypeScript icon, indicating that this package has built-in type declarations

0.27.1 • Public • Published

@comparaonline/ui-hero-header

React component to render the Hero Header.

Installation

yarn add @comparaonline/ui-hero-header

Usage

The HeroHeader requires a title prop (string), and aditionally you can add a subtitle and a backgroundImage prop.

import HeroHeader from '@comparaonline/ui-hero-header';
return (
  <HeroHeader
    title={'Title'}
    subtitle={'Title'}
    backgroundImage={'http://google.cl/niceImage.jpg'}
  />
);
key required type description
title true string The string to be displayed as the title
subtitle true string The string to be displayed as the subtitle
backgroundImage false function The href value, it should be absolute

/@comparaonline/ui-hero-header/

    Package Sidebar

    Install

    npm i @comparaonline/ui-hero-header

    Weekly Downloads

    27

    Version

    0.27.1

    License

    MIT

    Unpacked Size

    23.2 kB

    Total Files

    19

    Last publish

    Collaborators

    • gnavarro
    • dsuarez_compa
    • pfariaz
    • ricardo.sosa
    • suarezcumare
    • fverag
    • comparaonline-dev
    • comparaonlineprivate
    • matotias
    • javierlara1989
    • smurua
    • eseceve
    • pablocompara