Skip to content

Commit

Permalink
Merge pull request #406 from lifeomic/expansion-panel-leading-icon-cl…
Browse files Browse the repository at this point in the history
…assname

feat: Add leading icon class name prop to `<ExpansionPanel`
  • Loading branch information
dexterca authored Oct 10, 2023
2 parents f6d852e + dd92739 commit d0684b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/ExpansionPanel/ExpansionPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export interface ExpansionPanelProps
children?: React.ReactNode;
contentClassName?: string;
innerContentClassName?: string;
leadingIconClassName?: string;
title: string;
leadingIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
truncateTitle?: boolean;
Expand Down Expand Up @@ -143,6 +144,7 @@ export const ExpansionPanel = React.forwardRef<
className,
contentClassName,
innerContentClassName,
leadingIconClassName,
onToggle,
isOpen = false,
contentDirection = 'column',
Expand Down Expand Up @@ -216,7 +218,7 @@ export const ExpansionPanel = React.forwardRef<
<LeadingIcon
role="img"
aria-hidden
className={classes.leadingIcon}
className={clsx(classes.leadingIcon, leadingIconClassName)}
width={18}
height={18}
/>
Expand Down

0 comments on commit d0684b8

Please sign in to comment.