You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/module/patternfly-docs/content/extensions/component-groups/examples/ServiceCard/ServiceCard.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,17 +15,25 @@ The **service card** component displays a card representing a service with an ic
15
15
16
16
## Examples
17
17
18
-
### Service Card
18
+
### Basic service card
19
19
20
-
This shows a basic service card with an `icon`, `title`, `description`, and optional footer passed in.
20
+
This shows a basic service card with an `icon`, `title`, `description`, and optional footer passed in. You can also pass all props of the [card component](/components/card).
21
21
22
22
```js file="./ServiceCardExample.tsx"
23
23
24
24
```
25
25
26
-
### Service Card with Gallery example
26
+
### Stacked service card
27
27
28
-
This shows how cards can look side by side in a [gallery layout](/layouts/gallery).
28
+
If you set `isStacked` property to `true`, the header layout changes to stacked.
29
+
30
+
```js file="./ServiceCardStackedExample.tsx"
31
+
32
+
```
33
+
34
+
### Service card in a gallery
35
+
36
+
This shows how cards can look side by side in a [gallery layout](/layouts/gallery). If you set `isFullHeight` property to `true`, the card height will fill the available space.
Copy file name to clipboardExpand all lines: packages/module/patternfly-docs/content/extensions/component-groups/examples/ServiceCard/ServiceCardExample.tsx
Copy file name to clipboardExpand all lines: packages/module/patternfly-docs/content/extensions/component-groups/examples/ServiceCard/ServiceCardGalleryExample.tsx
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,9 @@ import contentHeaderIcon from '../../assets/icons/content-header-icon.svg';
0 commit comments