@syscore/ui-library 1.3.5 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,15 +75,17 @@ interface CardWithIconProps {
75
75
  icon?: React.ComponentType<React.SVGProps<SVGSVGElement> | { className?: string }>;
76
76
  title: string;
77
77
  description: string;
78
+ onClick?: React.MouseEventHandler<HTMLDivElement>;
78
79
  }
79
80
 
80
81
  const CardWithIcon = React.forwardRef<
81
82
  HTMLDivElement,
82
83
  CardWithIconProps
83
- >(({ icon: Icon, title, description }, ref) => (
84
+ >(({ icon: Icon, title, description, onClick }, ref) => (
84
85
  <Card
85
86
  ref={ref}
86
87
  className="card-with-icon"
88
+ onClick={onClick}
87
89
  >
88
90
  <div className="card-with-icon__header">
89
91
  {Icon && <Icon className="card-with-icon__icon" />}