Skip to content

Commit

Permalink
fix: allow tabs styling (#23)
Browse files Browse the repository at this point in the history
Release-As: 1.0.0
  • Loading branch information
neolitec authored Dec 7, 2022
1 parent 9612c79 commit a590c88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export type TabsClassNames = Partial<{
export interface TabsProps {
autoActivate?: boolean
children: React.ReactNode
className?: string
classNames?: TabsClassNames
onSelect?: (index: number, lastIndex: number) => void
onNameSelect?: (name?: string, lastName?: string) => void
Expand All @@ -40,6 +41,7 @@ export interface TabsProps {
const Tabs = ({
autoActivate = true,
children,
className,
classNames,
onNameSelect,
onSelect,
Expand Down Expand Up @@ -187,7 +189,7 @@ const Tabs = ({
tabProps,
])

return <>{getChildren()}</>
return <div className={className}>{getChildren()}</div>
}

function computeState(
Expand Down

0 comments on commit a590c88

Please sign in to comment.