Skip to content

Commit

Permalink
Merge pull request #92 from abusix/ahq2-41-hailstorm-adjust-tab-panel…
Browse files Browse the repository at this point in the history
…s-to-receive-classname-prop

fix(components): pass className prop to tab panels wrapper
  • Loading branch information
mnlfischer authored Jan 19, 2024
2 parents 7bfaa89 + 5d1ea19 commit 5dab6fa
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 5dab6fa

Please sign in to comment.