|
| 1 | +A block component for displaying a list of partner cards. |
| 2 | + |
| 3 | +## Props |
| 4 | + |
| 5 | +| Prop | Type | Description | |
| 6 | +| ------------- | ---------- | ----------------------------------------------- | |
| 7 | +| className | string | Optional CSS class name | |
| 8 | +| title | string | Optional title to display above the card list | |
| 9 | +| items | SideCard[] | Array of card items | |
| 10 | +| paddingTop | string | Top padding size (xxs, xs, s, m, l, xl, xxl) | |
| 11 | +| paddingBottom | string | Bottom padding size (xxs, xs, s, m, l, xl, xxl) | |
| 12 | +| qa | string | QA attribute for testing | |
| 13 | + |
| 14 | +## SideCard |
| 15 | + |
| 16 | +| Prop | Type | Description | |
| 17 | +| ----------- | ------------------- | -------------------------------- | |
| 18 | +| image | MediaProps['image'] | Image media content for the card | |
| 19 | +| description | string | Text to display on the card | |
| 20 | +| url | string | Link URL for the card | |
| 21 | + |
| 22 | +## Usage |
| 23 | + |
| 24 | +```tsx |
| 25 | +import {SideCardList} from './SideCardList'; |
| 26 | + |
| 27 | +<SideCardList |
| 28 | + className="custom-class" |
| 29 | + title="Side card list title" |
| 30 | + items={[ |
| 31 | + { |
| 32 | + image: { |
| 33 | + src: 'https://example.com/image1.png', |
| 34 | + alt: 'Image 1 description', |
| 35 | + }, |
| 36 | + description: 'Card 1', |
| 37 | + url: 'https://example.com/card1', |
| 38 | + }, |
| 39 | + { |
| 40 | + image: { |
| 41 | + src: 'https://example.com/image2.png', |
| 42 | + alt: 'Image 2 description', |
| 43 | + }, |
| 44 | + description: 'Card 2', |
| 45 | + url: 'https://example.com/card1', |
| 46 | + }, |
| 47 | + ]} |
| 48 | +/>; |
| 49 | +``` |
0 commit comments