We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e98f5c0 commit b95252fCopy full SHA for b95252f
packages/react/src/TabNav/TabNav.tsx
@@ -72,6 +72,7 @@ export type TabNavLinkProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLA
72
href?: string
73
className?: string
74
as?: React.ElementType | 'a' | 'button' | 'div'
75
+ disabled?: boolean
76
} & SxProp
77
78
/**
packages/react/src/TabNav/__tests__/TabNav.types.test.tsx
@@ -17,3 +17,14 @@ export function shouldAcceptButtonAsProps() {
17
export function shouldAcceptTabNavLinkprops() {
18
return <TabNav.Link to="to something" selected as={Button} />
19
}
20
+
21
+export function shouldAcceptDisableProps() {
22
+ return (
23
+ <TabNav.Link
24
+ disabled={true}
25
+ onClick={() => {
26
+ // noop
27
+ }}
28
+ />
29
+ )
30
+}
0 commit comments