1.9.0 • Published 2 years ago

@s-ui/react-card-image-cover v1.9.0

Weekly downloads
23
License
MIT
Repository
-
Last release
2 years ago

CardImageCover

SUI CardImageCover component is a card containing a background image, an optional tag, a title and text.

Installation

$ npm install @s-ui/react-card-image-cover --save

Usage

Basic usage

import CardImageCover from '@s-ui/react-card-image-cover'

const cardData = {
  media: {
    alt: "Lorem ipsum",
    src: "https://s.ccdn.es/images/landing-seller-hero@2x.jpg"
  },
  title: "Lorem ipsum dolor sit amet",
  text: "Nulla orci mauris, ultricies hendrerit augue eu",
  url: "https://www.coches.net",
  tag: {
    url: 'http://www.coches.net/novedades/',
    text: 'News',
    type: 'novedades'
  }
}

return (<CardImageCover {...cardData} />)

Find full description and more examples in the demo page.