--- title: Choice list description: >- The choice list component presents multiple options for single or multiple selections. Use it when merchants need to choose from a defined set of options, such as filtering results or collecting preferences. The component supports both single selection (radio button behavior) and multiple selection (checkbox behavior) modes. It includes configurable labels, help text, and validation. For compact dropdown selection with four or more options, use [select](/docs/api/checkout-ui-extensions/2026-04/web-components/forms/select). api_version: 2026-04 api_name: checkout-ui-extensions source_url: html: >- https://shopify.dev/docs/api/checkout-ui-extensions/latest/web-components/forms/choice-list md: >- https://shopify.dev/docs/api/checkout-ui-extensions/latest/web-components/forms/choice-list.md --- # Choice list The choice list component presents multiple options for single or multiple selections. Use it when merchants need to choose from a defined set of options, such as filtering results or collecting preferences. The component supports both single selection (radio button behavior) and multiple selection (checkbox behavior) modes. It includes configurable labels, help text, and validation. For compact dropdown selection with four or more options, use [select](https://shopify.dev/docs/api/checkout-ui-extensions/2026-04/web-components/forms/select). ### Support Targets (29) ### Supported targets * purchase.​checkout.​actions.​render-before * purchase.​checkout.​block.​render * purchase.​checkout.​cart-line-item.​render-after * purchase.​checkout.​cart-line-list.​render-after * purchase.​checkout.​contact.​render-after * purchase.​checkout.​delivery-address.​render-after * purchase.​checkout.​delivery-address.​render-before * purchase.​checkout.​footer.​render-after * purchase.​checkout.​header.​render-after * purchase.​checkout.​payment-method-list.​render-after * purchase.​checkout.​payment-method-list.​render-before * purchase.​checkout.​pickup-location-list.​render-after * purchase.​checkout.​pickup-location-list.​render-before * purchase.​checkout.​pickup-location-option-item.​render-after * purchase.​checkout.​pickup-point-list.​render-after * purchase.​checkout.​pickup-point-list.​render-before * purchase.​checkout.​reductions.​render-after * purchase.​checkout.​reductions.​render-before * purchase.​checkout.​shipping-option-item.​details.​render * purchase.​checkout.​shipping-option-item.​render-after * purchase.​checkout.​shipping-option-list.​render-after * purchase.​checkout.​shipping-option-list.​render-before * purchase.​thank-you.​announcement.​render * purchase.​thank-you.​block.​render * purchase.​thank-you.​cart-line-item.​render-after * purchase.​thank-you.​cart-line-list.​render-after * purchase.​thank-you.​customer-information.​render-after * purchase.​thank-you.​footer.​render-after * purchase.​thank-you.​header.​render-after ## Properties * **disabled** **boolean** **Default: false** Whether the field is disabled, preventing any user interaction. `disabled` on any child choices is ignored when this is true. * **error** **string** An error message displayed below the field to indicate validation problems. When set, the field is styled with error indicators and the message is announced to screen readers. * **id** **string** A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting. * **label** **string** The text displayed as the field label, which identifies the purpose of the field to users. This label is associated with the field for accessibility and helps users understand what information to provide. * **labelAccessibilityVisibility** **'visible' | 'exclusive'** **Default: 'visible'** Controls whether the label is visible to all users or only to screen readers. * `visible`: The label is shown to everyone. * `exclusive`: The label is visually hidden but still announced by screen readers. * **multiple** **boolean** **Default: false** Whether multiple choices can be selected. * **name** **string** The name attribute for the field, used to identify the field's value when the form is submitted. Must be unique within the nearest containing form. * **values** **string\[]** An array of the `value`s of the selected options. This is a convenience prop for setting the `selected` prop on child options. * **variant** **'auto' | 'list' | 'inline' | 'block' | 'grid'** **Default: 'auto'** The variant of the choice grid. * `auto`: The variant is determined by the context. * `list`: The choices are displayed in a list. * `inline`: The choices are displayed on the inline axis. * `block`: The choices are displayed on the block axis. * `grid`: The choices are displayed in a grid. ## Events Learn more about [registering events](https://shopify.dev/docs/api/checkout-ui-extensions/2026-04/using-polaris-components#event-handling). * **change** **CallbackEventListener\** A callback fired when the choice list value changes. Learn more about the [change event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event). ### CallbackEventListener A typed event listener for custom element events. The listener receives a \`CallbackEvent\` with the correct \`currentTarget\` type for the associated custom element tag. ```ts (EventListener & { (event: CallbackEvent & TData): void; }) | null ``` ### CallbackEvent An event type that narrows the \`currentTarget\` to the specific HTML element associated with the custom element tag. This provides type-safe event handling in callback listeners. ```ts TEvent & { currentTarget: HTMLElementTagNameMap[TTagName]; } ``` ## Choice The choice component creates individual selectable options within a choice list. Use choice to define each option that merchants can select, supporting both single selection (radio buttons) and multiple selection (checkboxes) modes. Choice components support labels, help text, and custom content through slots, providing flexible option presentation within choice lists. * **accessibilityLabel** **string** A label used for users using assistive technologies like screen readers. When set, any children or `label` supplied will not be announced. This can also be used to display a control without a visual label, while still providing context to users using screen readers. * **defaultSelected** **boolean** **Default: false** Whether the control is selected by default. * **disabled** **boolean** **Default: false** Whether the control is disabled, preventing any user interaction. * **error** **boolean** **Default: false** Whether this choice is associated with the error state of the parent choice list. When `true`, the choice is visually marked as having an error. * **id** **string** A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting. * **selected** **boolean** **Default: false** Whether the control is currently selected. * **value** **string** The value used in form data when the control is checked. ## Slots Learn more about [component slots](https://shopify.dev/docs/api/checkout-ui-extensions/2026-04/using-polaris-components#slots). * **details** **HTMLElement** Additional text to provide context or guidance for the input. This text is displayed along with the input and its label to offer more information or instructions to the user. * **secondaryContent** **HTMLElement** Secondary content for a choice. * **selectedContent** **HTMLElement** Content to display when the option is selected. This can be used to provide additional information or options related to the choice. Examples ## Preview ![](https://cdn.shopify.com/shopifycloud/shopify-dev/development/assets/assets/images/templated-apis-screenshots/checkout-ui-extensions/2025-10/choice-list-default-D6RTGm1A.png) ### Examples * #### Code ##### Default ```html Yonge-Dundas Square locations Distillery District location Yorkville location ``` * #### List Variant ##### Description This classic and flexible variant is ideal for \up to 10 choices\. It’s the most common and recognizable format for making a selection from a vertical list. \Best Practices\ \ ##### Default ```html Yonge-Dundas Square Distillery District Yorkville ``` * #### Block Variant ##### Description This variant is designed for options that require both \secondary content\ and a clear visual separation. It’s well-suited for \up to 5 choices\ where each item is complex and needs its own defined space. Due to its "chunky" footprint, using more than 5 can take up too much vertical space. \Best Practices\ \ ##### Default ```html Yonge-Dundas Square 1 Dundas St E, Toronto ON 1.2 km Distillery District 55 Mill St, Toronto ON 4 km Yorkville 55 Avenue Rd, Toronto ON 6 km ``` * #### Inline Variant ##### Description This compact variant is ideal when \screen real estate is limited\. It works best for \up to 3 to 5 choices\ depending on the typical length of the content. \Best Practices\ \ ##### Default ```html $3.50 $4.50 $5.50 Other ``` * #### Grid Variant ##### Description This variant is best for \up to 6 choices\, arranged in a grid-like layout. It’s great for scenarios where choices have significant visual differences and need to be arranged for easy comparison. \Best Practices\ \ ##### Default ```html Standard Deluxe Personalized ```