-
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey, I'm not seeing a type error in The following gives me no type errors and TypeScript can locate the disabled prop types as expected. I'll gladly take another look if you can provide a reproduction though. import { Tab } from '@headlessui/react'
export default function MyTabs() {
return (
<Tab.Group>
<Tab.List>
<Tab>Tab 1</Tab>
<Tab disabled={true}>Tab 2</Tab>
<Tab>Tab 3</Tab>
</Tab.List>
<Tab.Panels>
<Tab.Panel>Content 1</Tab.Panel>
<Tab.Panel>Content 2</Tab.Panel>
<Tab.Panel>Content 3</Tab.Panel>
</Tab.Panels>
</Tab.Group>
)
} |
Beta Was this translation helpful? Give feedback.
-
This TS error occurs because you use |
Beta Was this translation helpful? Give feedback.
I found the issue:
<Tab disabled={true} as={Fragment}>Tab 2</Tab>
But I guess that's to be expected