Skip to content

Commit b95252f

Browse files
committed
Adding disabled prop to type
1 parent e98f5c0 commit b95252f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

packages/react/src/TabNav/TabNav.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export type TabNavLinkProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLA
7272
href?: string
7373
className?: string
7474
as?: React.ElementType | 'a' | 'button' | 'div'
75+
disabled?: boolean
7576
} & SxProp
7677

7778
/**

packages/react/src/TabNav/__tests__/TabNav.types.test.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,14 @@ export function shouldAcceptButtonAsProps() {
1717
export function shouldAcceptTabNavLinkprops() {
1818
return <TabNav.Link to="to something" selected as={Button} />
1919
}
20+
21+
export function shouldAcceptDisableProps() {
22+
return (
23+
<TabNav.Link
24+
disabled={true}
25+
onClick={() => {
26+
// noop
27+
}}
28+
/>
29+
)
30+
}

0 commit comments

Comments
 (0)