question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Export all components interface/types to `flowbite-react`

See original GitHub issue

Is 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:closed
  • Created 10 months ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Rafaelb4rroscommented, Nov 16, 2022

some components are being exported “directly”: image the solution would be export the Index file: export * from './Accordion';

and there are some primary components that are not being exported on the components index file, like the Floating component, this breaks the types import: image we can export the Floating component like the others on the components index file.

1reaction
Rafaelb4rroscommented, Nov 16, 2022

some components are being exported “directly”: image that makes the types that are being exported from the index file useless, the solution would be export the Index file: export * from './Accordion';

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found