Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

bpk-component-content-cards

Package Overview
Dependencies
Maintainers
6
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bpk-component-content-cards

Backpack content-cards component.

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
6
Created
Source

BpkContentCards

Backpack example component.

  • Storybook link
  • Content Cards Docs

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
  • image
    • url
    • alt
  • headline
  • description
  • href
Array
  • Object
    • string
    • string
  • string
  • string
  • string
true
  • true
    • true
    • false
  • true
  • true
  • true
""

FAQs

Package last updated on 30 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts