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: polaris.shopify.com/content/foundations/patterns/resource-picking.md
+3-15Lines changed: 3 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,29 +15,17 @@ keywords:
15
15
- segments
16
16
- segementation
17
17
- single select
18
-
examples:
19
-
- fileName: listbox-with-search.tsx
20
-
title: Searchable listbox
21
-
description: Use to help merchants browse, filter, and choose from a list of options.
22
-
- fileName: popover-with-segment-picker.tsx
23
-
title: Popover with segment picker
24
-
description: Use to help merchants quickly browse, find, and navigate from a list of customer segments.
25
-
- fileName: sheet-with-segment-picker.tsx
26
-
title: Sheet with segment picker
27
-
description: Use to help merchants quickly find and select from a list of customer segments.
28
18
---
29
19
30
20
# Resource picking
31
21
32
22
Resource picking experiences let merchants browse, find, and select items in a list to perform an action. The picking feature can help them navigate to a new page, filter an index table, or input one or more values in a form.
33
23
34
-

24
+

35
25
36
-
The primary building blocks of a picker experience are the listbox and text field components. Depending on what merchant problem you’re solving, the components may be hidden and revealed with an overlay, such as a popover or modal, or used directly inside of a container on the page. See the [customer segment picker](#customer-segments) and [location picker](#locations) examples for resource specific implementation details.
26
+
The primary building block of a picker experience is the searchable listbox pattern, composed of the listbox and text field components. Depending on what merchant problem you’re solving, the components may be used directly inside of a container on the page or hidden and revealed with an overlay, such as a popover or modal. See the [customer segment picker](#customer-segments) and [location picker](#locations) examples for context specific implementation details.
37
27
38
-
CODE SAMPLE
39
-
40
-
Include guidance about how to pick what container: The searchable listbox should be rendered directly.
28
+
Display the resource picker directly on the page if picking from the list is part of the primary action merchants need to take, such as completing a form. If the purpose of the resource picker is secondary to the action merchants should take on the page, such as in page navigation or list filtering, use progressive disclosure to present the list.
0 commit comments