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: src/components/Card/README.md
+94Lines changed: 94 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
---
2
2
name: Card
3
3
category: Structure
4
+
platforms:
5
+
- android
6
+
- ios
7
+
- web
4
8
keywords:
5
9
- layout
6
10
- container
@@ -200,10 +204,26 @@ Use when you have a simple message to communicate to merchants that doesn’t re
200
204
</Card>
201
205
```
202
206
207
+
<!-- content-for: android -->
208
+
209
+

210
+
211
+
<!-- /content-for -->
212
+
213
+
<!-- content-for: ios -->
214
+
215
+

216
+
217
+
<!-- /content-for -->
218
+
203
219
### Card with header actions
204
220
221
+
<!-- content-for: web -->
222
+
205
223
Use for less important card actions, or actions the merchant may do before reviewing the contents of the card. For example, a merchant may want to add items to a card containing a long list, or enter a customer’s new address.
@@ -213,10 +233,35 @@ Use for less important card actions, or actions the merchant may do before revie
213
233
</Card>
214
234
```
215
235
236
+
<!-- content-for: ios, android -->
237
+
238
+
Use for less important card actions, or actions the merchant may do before reviewing the contents of the card.
239
+
240
+
- Use an icon for the action, if possible
241
+
- Include no more than 2 actions
242
+
243
+
<!-- /content-for -->
244
+
245
+
<!-- content-for: android -->
246
+
247
+

248
+
249
+
<!-- /content-for -->
250
+
251
+
<!-- content-for: ios -->
252
+
253
+

254
+
255
+
<!-- /content-for -->
256
+
216
257
### Card with footer actions
217
258
259
+
<!-- content-for: web -->
260
+
218
261
Use footer actions for a card’s most important actions, or actions merchants should do after reviewing the contents of the card. For example, a merchant should review the contents of a shipment before important actions like cancelling or adding tracking information.
219
262
263
+
<!-- /content-for -->
264
+
220
265
```jsx
221
266
<Card
222
267
title="Shipment 1234"
@@ -232,6 +277,27 @@ Use footer actions for a card’s most important actions, or actions merchants s
232
277
</Card>
233
278
```
234
279
280
+
<!-- content-for: android, ios -->
281
+
282
+
Use footer actions for a card’s most important actions, or actions merchants should do after reviewing the contents of the card.
283
+
284
+
- Use buttons with labels
285
+
- If you have more than 2 actions, consider using an overflow menu on the card
Use when you have two related but distinct pieces of information to communicate to merchants. Multiple sections can help break up complicated concepts to make them easier to scan and understand.
@@ -251,6 +317,18 @@ Use when you have two related but distinct pieces of information to communicate
251
317
</Card>
252
318
```
253
319
320
+
<!-- content-for: android -->
321
+
322
+

323
+
324
+
<!-- /content-for -->
325
+
326
+
<!-- content-for: ios -->
327
+
328
+

329
+
330
+
<!-- /content-for -->
331
+
254
332
### Card with multiple titled sections
255
333
256
334
Use when you have two related but distinct pieces of information to communicate to merchants that are complex enough to require a title to introduce them.
@@ -270,8 +348,22 @@ Use when you have two related but distinct pieces of information to communicate
270
348
</Card>
271
349
```
272
350
351
+
<!-- content-for: android -->
352
+
353
+

354
+
355
+
<!-- /content-for -->
356
+
357
+
<!-- content-for: ios -->
358
+
359
+

360
+
361
+
<!-- /content-for -->
362
+
273
363
### Card with a subdued section
274
364
365
+
<!-- example-for: web -->
366
+
275
367
Use to indicate when one of the sections in your card contains inactive or disabled content.
276
368
277
369
```jsx
@@ -294,6 +386,8 @@ Use to indicate when one of the sections in your card contains inactive or disab
294
386
295
387
### Subdued card for secondary content
296
388
389
+
<!-- example-for: web -->
390
+
297
391
Use for content that you want to deprioritize. Subdued cards don’t stand out as much as cards with white backgrounds so don’t use them for information or actions that are critical to merchants.
0 commit comments