Image Card Component
UI ComponentUI Component overview
Changed on:
27 Sept 2024
Overview
The Image Card Component enables you to display an image alongside other components within a card.For example, you can place download buttons below an image to prompt the reader to interact with the buttons.
| Plugin Name | Core |
|---|
Alias
fc.card.image
Detailed technical description
The component presents as a card, with an image as the foreground object. You can then add in other components and determine their size and position within the card.
Example:
Visualization:
Configuration Options
Example:
Example:
Visualization:
Properties
| Name | Type | Required | Default | Description |
| image | `CardImageProps` | yes | none | An object containing image URL and dimensions (width and height) |
| width | `CardWidth ("quarter"/ "third"/ "half"/ "two-thirds"/ "full"/ number (1-12))` | no | 12 | Define the width of this card on a 12-column grid. Can use the named widths for readability or numbers directly.On mobile devices, all widths will automatically change to 12 for the best responsive experience. |
| indent | `boolean` | no | - | Indent between image and descendants. |
| descendantSpacing | `'center' | 'start' | 'end' | 'space-between' | 'space-around'` | no | `'space-around'` | The property defines the spacing between descendants. It can be parsed from the template string. Examples:![]() ![]() |
| descendantDirection | `'row' | 'column'` | no | `'row'` | The property defines the descendant direction. It can be parsed from the template string. Examples:![]() |
CardImageProperties
| Name | Type | Required | Default | Description |
| height | `string` | no | - | Image height.Examples: `'100px', 'auto'` |
| width | `string` | no | - | Image width.Examples: `'100px', '20%', 'auto'` |
| imageUrl | `string` | no | - | Image URL. Template string can be used to define the URL. |
Configuration example
1{
2 "component": "fc.card.image",
3 "props": {
4 "width": 3,
5 "indent": true,
6 "image": {
7 "imageUrl": "https://c.static-nike.com/a/images/f_auto,b_rgb:f5f5f5,w_440/skwgyqrbfzhu6uyeh0gg/air-max-270-shoe-nnTrqDGR.jpg",
8 "height": "300px"
9 }
10 },
11 "descendants": [
12 {
13 "component": "fc.button.print",
14 "props": {
15 "label": "PRINT PACK SLIP",
16 "setting": "example.wave.pick.print",
17 "position": {}
18 }
19 },
20 {
21 "component": "fc.button.print",
22 "props": {
23 "label": "PRINT ORDER LABEL",
24 "setting": "example.wave.pick.print"
25 }
26 }
27 ]
28}Version History
Recommended Placement
The component can be placed in pages, drawers, lists.



