# Chip Group A collection of compact interactive chips for filtering or selecting options. Supports Filter (multi-select) and Choice (single-select) types, horizontal and wrapped layouts, and overflow handling for both desktop and mobile contexts. **Category:** Components **Storybook:** https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-chip-group--introduction ## Variants documented in Storybook - Filter Chips Group: https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-chip-group--filter-chips-group - Choice Chips Group: https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-chip-group--choice-chips-group ## Framework setup ### HTML / CDN ```html ``` ### React ```bash npm install ux4g-web-components ``` ```jsx import 'ux4g-web-components/styles.css'; import 'ux4g-web-components/design-system'; ``` ### Angular Update `angular.json`: ```json { "styles": [ "node_modules/ux4g-web-components/styles/ux4g.css", "src/styles.css" ], "scripts": [ "node_modules/ux4g-web-components/dist/runtime/design-system.js" ] } ``` ## Code examples The snippets below are extracted from the Storybook canvas for Chip Group. Each example shows the rendered HTML, the equivalent React JSX, and the Angular template markup. ### 1. Choice Chips Group — Choice Group (Desktop) HTML: ```html
A collection of compact interactive chips for filtering or selecting options. Supports Filter (multi-select) and Choice (single-select) types, horizontal and wrapped layouts, and overflow handling for both desktop and mobile contexts.
Visual demonstration of various Chip Group patterns.
Quickly copy layout and interaction classes for Chip Groups.
|
Filter Chip Variant
ux4g-filter-chip-group
|
|
Choice Chip Variant
ux4g-choice-chip-group
|
|
Badge for Counts
ux4g-badge-digit-primary
|
|
Active/Selected State
active
|
|
Disabled State
disabled
|
A collection of compact interactive chips for filtering or selecting options. Supports Filter (multi-select) and Choice (single-select) types, horizontal and wrapped layouts, and overflow handling for both desktop and mobile contexts.
Visual demonstration of various Chip Group patterns.
Quickly copy layout and interaction classes for Chip Groups.
|
Filter Chip Variant
ux4g-filter-chip-group
|
|
Choice Chip Variant
ux4g-choice-chip-group
|
|
Badge for Counts
ux4g-badge-digit-primary
|
|
Active/Selected State
active
|
|
Disabled State
disabled
|
A collection of compact interactive chips for filtering or selecting options. Supports Filter (multi-select) and Choice (single-select) types, horizontal and wrapped layouts, and overflow handling for both desktop and mobile contexts.
Visual demonstration of various Chip Group patterns.
Quickly copy layout and interaction classes for Chip Groups.
|
Filter Chip Variant
ux4g-filter-chip-group
|
|
Choice Chip Variant
ux4g-choice-chip-group
|
|
Badge for Counts
ux4g-badge-digit-primary
|
|
Active/Selected State
active
|
|
Disabled State
disabled
|