how to make this Polaris multiple select component

halild
Shopify Partner
1 0 0

Hi,

I am building an app and I need to put a multiple select country+state selection in there but I could not managed to get which polaris components are used to do 2 levels nested selection for country+state but inner level is optional.

 

This is what I have now, which is single level;

Screenshot 2023-08-13 at 00.04.18.png

 

I want to do like exactly in shopify shipping page config as below;

Screenshot 2023-08-13 at 00.02.28.png

Reply 1 (1)

remy727
Shopify Partner
40 2 22

You need to build a custom component using the Shopify Polaris Checkbox component.

I built the similar one before and I created the public gist.

Hope it's helpful.

Looking for a Shopify App developer? Please visit: https://github.com/remy727