1.1.2 • Published 2 years ago

bpk-component-content-cards v1.1.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

BpkContentCards

Backpack example component.

Installation

npm install bpk-component-content-cards --save-dev

Usage

import React from 'react';
import BpkContentCards from '@skyscanner/backpack-web/bpk-component-content-cards';

<BpkContentCards
    heading='Heading'
    cards=[
        {
            image: {
                url: 'http://skyscanner.net/card-1-image-link.jpg',
                alt: 'People surfing in the ocean',
            },
            headline: 'Card headline',
            description: 'Card description',
            href: 'http://skyscanner.net/card-1-cta-link.html',
        },
    ]
/>

export default () => <BpkContentCards />;

Props

PropertyPropTypeRequiredDefault Value
headingstringtrue
cards imageurlaltheadlinedescriptionhrefArray Objectstringstringstringstringstringtrue truetruefalsetruetruetrue""
1.1.1

2 years ago

1.1.0

2 years ago

1.0.4

2 years ago

1.1.2

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.1

2 years ago