Skip to content

Commit

Permalink
Merge pull request #283 from wrappid/WRPD-enhancement-282
Browse files Browse the repository at this point in the history
feat(core): ✨ clickable CoreChip on onClick
  • Loading branch information
anantakumarghosh authored Aug 14, 2024
2 parents 029634d + 8529f30 commit ccdaa33
Showing 1 changed file with 5 additions and 32 deletions.
37 changes: 5 additions & 32 deletions package/components/dataDisplay/CoreChip.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,9 @@ import { sanitizeComponentProps } from "../../utils/componentUtil";
export default function CoreChip(props) {
props = sanitizeComponentProps(CoreChip, props);

const {
avatar,
clickable,
color,
component,
deleteIcon,
showZero,
icon,
label,
onDelete,
size,
skipFocusWhenDisabled,
variant,
disabled
} = props;

return (
<NativeChip
avatar={avatar}
clickable={clickable}
color={color}
component={component}
deleteIcon={deleteIcon}
showZero={showZero}
icon={icon}
label={label}
onDelete={onDelete}
size={size}
skipFocusWhenDisabled={skipFocusWhenDisabled}
variant={variant}
disabled={disabled}
<NativeChip
{...props}
/>
);
}
Expand All @@ -55,8 +27,9 @@ CoreChip.validProps = [
name : "clickable",
types : [
{
type : "boolean",
validValues: [true, false],
isDefaultType: true,
type : "boolean",
validValues : [true, false],
},
],
},
Expand Down

0 comments on commit ccdaa33

Please sign in to comment.