- Welcome
- Getting started
- Latest updates
- Foundations
-
Components
- Accordion
- Alert
- Alignment
- Aria live
- Autosuggest
- Badge
- Banner alert
- Bar chart
- Blockquote
- Bottom navigation
- Bottom sheet
- Breadcrumb
- Breakpoint
- Button
- Calendar
- Card
- Card List
- Card button
- Carousel
- Checkbox
- Chip
- Chip group
- Code
- Content cards
- Data Table
- Datepicker
- Description list
- Dialog
- Divider
- Drawer
- Field Set
- Flare
- Flat list
- Flight leg
- Floating action button
- Floating notification
- Form label
- Form validation
- Graphic promotion
- Horizontal navigation
- Icon
- Image
- Infinite scroll
- Link
- List
- Map
- Mobile scroll container
- Modal
- Navigation bar
- Nudger
- Overlay
- Page indicator
- Pagination
- Panel
- Phone input
- Picker
- Popover
- Price
- Progress bar
- Radio button
- Rating
- Scrollable calendar
- Section header
- Section list
- Select
- Skeleton
- Skip link
- Slider
- Snackbar
- Snippet
- Spinner
- Split input
- Star rating
- Switch
- Table
- Text
- Text input
- Theming
- Ticket
- Toast
- Tooltip
- Touchable native feedback
- Touchable overlay
- Content
- Accessibility
Content cards
Images and text arranged in a beautiful responsive layout, with options to show 1, 2, or 3 items at once.
With one card
Storybook failed to load.
With two cards
Storybook failed to load.
With three cards
Storybook failed to load.
bpk-component-content-cards
Backpack example component.
Installation
Check the main Readme for a complete installation guide.
Usage
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
Property | PropType | Required | Default Value |
---|---|---|---|
heading | string | true | |
cards
|
Array
|
true
|
"" |
Made with ❤️ by Skyscanner © 2023
© 2023 Skyscanner Backpack. Page last updated on Jan 11, 2023, 16:42