Skip to content

Commit

Permalink
fix: forward classNames to tab component (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
ychhabra-eightfold authored May 31, 2022
1 parent 85d87f7 commit 57969b8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/Tabs/Tab/Tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@ import styles from '../tabs.module.scss';

export const Tab: FC<TabProps> = React.forwardRef(
(
{ value, label, icon, disabled, ariaLabel, badgeContent, ...rest },
{
value,
label,
icon,
disabled,
ariaLabel,
badgeContent,
classNames,
...rest
},
ref: Ref<HTMLButtonElement>
) => {
const { onTabClick, currentActiveTab } = useTabs();
Expand All @@ -27,6 +36,7 @@ export const Tab: FC<TabProps> = React.forwardRef(
styles.tab,
{ [styles.active]: isActive },
{ [styles.inverse]: light },
classNames,
]);

const getIcon = (): JSX.Element =>
Expand Down

0 comments on commit 57969b8

Please sign in to comment.