diff --git a/core/components/atoms/chipGroup/ChipGroup.tsx b/core/components/atoms/chipGroup/ChipGroup.tsx index 8f3a77576d..36704c5575 100644 --- a/core/components/atoms/chipGroup/ChipGroup.tsx +++ b/core/components/atoms/chipGroup/ChipGroup.tsx @@ -26,7 +26,13 @@ export interface ChipGroupProps extends BaseProps { * onClose?: (name: number | string | object) => void; * onClick?: (name: number | string | object) => void; * name: number | string | object; - * } + * iconVariations?: { + * fill?: number; + * weight?: number; Range: [100, 700] + * grade?: number; Range: [-25, 200] + * opticalSize?: number; Range: [20px, 48px] + * }; + * } * */ list: ChipProps[]; @@ -53,7 +59,7 @@ export const ChipGroup = (props: ChipGroupProps) => { return (
{list.map((item, ind) => { - const { label = '', icon, type, disabled, selected, clearButton, name } = item; + const { label = '', icon, type, disabled, selected, clearButton, name, iconVariations } = item; return ( { icon={icon} disabled={disabled} clearButton={clearButton} + iconVariations={iconVariations} type={type} onClick={() => onClickHandler(item)} onClose={() => onCloseHandler(item)}