Export all components interface/types to `flowbite-react`
See original GitHub issueIs your feature request related to a problem? Please describe. Sometimes I need to handle some data from API or configurations that will later be passed to a flowbite-component. In this case, I would like to convert this data to the component property types.
Describe the solution you’d like All interfaces/types used by flowbite components must be exported as types to the default package.
Describe alternatives you’ve considered None.
Additional context
One good example is when you are using the react-router
to create the Breadcrumb
and you need to handle some logic to the data to apply it to the Breadcrumb. Item
. I can’t import the BreadcrumbItemProps
directly from the flowbite-react
package.
Issue Analytics
- State:
- Created 10 months ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Importing and Exporting Components
A JavaScript library for building user interfaces. ... What a root component file is; How to import and export a component; When to...
Read more >Flowbite - Tailwind CSS component library
Flowbite is an open-source library of UI components based on the utility-first Tailwind CSS framework featuring dark mode support, a Figma design system,...
Read more >Theme overwrite per component · Issue #443
In this case, with the theme component, you can customize every single ... and fully overwrite the main flowbite-react theme for one specific...
Read more >TS + React - Should props interfaces be exported?
Yes, export -ing props is a good practice, because it allows more advanced use-cases like wrapping components in another.
Read more >flowbite-react
flowbite -react is an open source collection of UI components, built in React, with utility classes from Tailwind CSS that you can use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
and there are some primary components that are not being exported on the
components
index file, like theFloating
component, this breaks the types import: we can export theFloating
component like the others on thecomponents
index file.some components are being exported “directly”: that makes the types that are being exported from the index file useless, the solution would be export the Index file:
export * from './Accordion';