--- title: ClickableChip description: >- Interactive button used to categorize or highlight content attributes. They are often displayed near the content they classify, enhancing discoverability by allowing users to identify items with similar properties. api_name: app-home source_url: html: >- https://shopify.dev/docs/api/app-home/polaris-web-components/actions/clickablechip md: >- https://shopify.dev/docs/api/app-home/polaris-web-components/actions/clickablechip.md --- # Clickable​Chip Interactive button used to categorize or highlight content attributes. They are often displayed near the content they classify, enhancing discoverability by allowing users to identify items with similar properties. ## Properties * accessibilityLabel string A label that describes the purpose or contents of the Chip. It will be read to users using assistive technologies such as screen readers. * color ColorKeyword Default: 'base' Modify the color to be more or less intense. * command '--auto' | '--show' | '--hide' | '--toggle' Default: '--auto' Sets the action the [command](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#command) should take when this clickable is activated. See the documentation of particular components for the actions they support. * `--auto`: a default action for the target component. * `--show`: shows the target component. * `--hide`: hides the target component. * `--toggle`: toggles the target component. * commandFor string Sets the element the [commandFor](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#commandfor) should act on when this clickable is activated. * disabled boolean Default: false Disables the chip, disallowing any interaction. * hidden boolean Default: false Determines whether the chip is hidden. If this property is being set on each framework render (as in 'controlled' usage), and the chip is `removable`, ensure you update app state for this property when the `remove` event fires. If the chip is not `removable`, it can still be hidden by setting this property. * href string The URL to link to. * If set, it will navigate to the location specified by `href` after executing the `click` event. * If a `commandFor` is set, the `command` will be executed instead of the navigation. * interestFor string Sets the element the [interestFor](https://open-ui.org/components/interest-invokers.explainer/#the-pitch-in-code) should act on when this clickable is activated. * removable boolean Default: false Whether the chip is removable. ### ColorKeyword ```ts 'subdued' | 'base' | 'strong' ``` ## Events Learn more about [registering events](https://shopify.dev/docs/api/app-home/using-polaris-components#event-handling). * afterhide CallbackEventListener\ | null * click CallbackEventListener\ | null * remove CallbackEventListener\ | null ### CallbackEventListener ```ts (EventListener & { (event: CallbackEvent): void; }) | null ``` ### CallbackEvent ```ts Event & { currentTarget: HTMLElementTagNameMap[T]; } ``` ## Slots * children HTMLElement The content of the clickable chip. * graphic HTMLElement The graphic to display in the clickable chip. Only accepts `Icon` components. ### Examples * #### Code ##### jsx ```jsx Clickable chip ``` ##### html ```html Clickable chip ``` ## Examples Component examples ### Basic usage Basic Usage Demonstrates a simple clickable chip with a base color and interactive functionality. With Icon and Remove Button Showcases a strong-colored clickable chip with a check circle icon and a removable state. As a Link Demonstrates a subdued clickable chip configured as a link with a product icon. Disabled State Illustrates a clickable chip in a disabled state, preventing interaction while displaying an inactive status. Multiple Chips with Proper Spacing Demonstrates how multiple clickable chips with different colors, icons, and states can be arranged using an inline stack for consistent layout and spacing. ### Examples * #### Basic Usage ##### Description Demonstrates a simple clickable chip with a base color and interactive functionality. ##### jsx ```jsx Active Draft Archived ``` ##### html ```html Active Draft Archived ``` * #### With Icon and Remove Button ##### Description Showcases a strong-colored clickable chip with a check circle icon and a removable state. ##### jsx ```jsx In progress ``` ##### html ```html In progress ``` * #### As a Link ##### Description Demonstrates a subdued clickable chip configured as a link with a product icon. ##### jsx ```jsx T-shirt ``` ##### html ```html T-shirt ``` * #### Disabled State ##### Description Illustrates a clickable chip in a disabled state, preventing interaction while displaying an inactive status. ##### jsx ```jsx Inactive ``` ##### html ```html Inactive ``` * #### Multiple Chips with Proper Spacing ##### Description Demonstrates how multiple clickable chips with different colors, icons, and states can be arranged using an inline stack for consistent layout and spacing. ##### jsx ```jsx Active In progress Category ``` ##### html ```html Active In progress Category ```