Extending types from Headless UI components #991
Unanswered
bledbytyci-ornio
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, a newbie to Headless UI here!
I'm using Headless UI together with Tailwind UI to build a design system, so basically I'm taking the core logic from Headless and apply styling to our custom components and then export the polished components. Is there a way to import types of a headless component and apply these props to a specific component.
E.g :
import {ListboxProps} from '@headlesui/react'
export CustomSelectProps extends ListboxProps {
...(extra props here);
}
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions