--- 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 Component examples ### Basic usage