Skip to content

Commit

Permalink
fix(components): pass className prop to tab panels wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlfischer committed Jan 19, 2024
1 parent 7bfaa89 commit 5d1ea19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/tab/tab-panels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import { Tab as HeadlessTab } from "@headlessui/react";

export interface TabPanelsProps {
children: React.ReactNode;
className?: string;
}

export const TabPanels = ({ children }: TabPanelsProps) => {
return <HeadlessTab.Panels>{children}</HeadlessTab.Panels>;
export const TabPanels = ({ children, className }: TabPanelsProps) => {
return <HeadlessTab.Panels className={className}>{children}</HeadlessTab.Panels>;
};

0 comments on commit 5d1ea19

Please sign in to comment.