Skip to content

Commit

Permalink
Merge pull request #15 from BuidlerDAO/comp/event
Browse files Browse the repository at this point in the history
classname for tabs
  • Loading branch information
zhbyak authored Jan 10, 2025
2 parents 9349283 + 4a2f399 commit 857225b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "n6-ui",
"version": "1.2.2",
"version": "1.2.3",
"description": "N6 Network UI Framework",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 3 additions & 0 deletions src/NTabs/NTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ export interface NTabsProps extends PropsWithChildren {
defaultActivePane: string;
activePane?: string;
className?: string;
tabClassName?: string;
neck?: ReactNode;
onChange(name: string): void;
}

const NTabs: React.FC<NTabsProps> = ({
state = NTabsState.None,
className,
tabClassName,
children,
neck,
defaultActivePane,
Expand Down Expand Up @@ -108,6 +110,7 @@ const NTabs: React.FC<NTabsProps> = ({
: activePane === tab.name
? 'text-white rounded-[100px] bg-gray-2'
: 'text-gray-3',
tabClassName,
)}
key={idx}
onClick={() => handleTabClick(tab.name, idx)}
Expand Down

0 comments on commit 857225b

Please sign in to comment.