Replies: 14 comments 8 replies
-
Hey @odurgeau, I think you should first set up Tailwind CSS and then install Flowbite as a plugin. Please check out these guides: You shouldn't directly import Flowbite's CSS, rather you should compile it yourself to purge all unnecessary classes. Furthermore, keep in mind that we will release a new JavaScript next week under the v1.4.0 update where the components will be essential objects with parameters, methods, and you will even be able to use callback functions. Until then, I think you could simply just import the CDN of the JavaScript. |
Beta Was this translation helpful? Give feedback.
-
Thx for your advice, I believe I will waiting the new release |
Beta Was this translation helpful? Give feedback.
-
I'm using the following workaround which works for me:
|
Beta Was this translation helpful? Give feedback.
-
Can confirm using Importing the CSS via CDN works, or alternatively use |
Beta Was this translation helpful? Give feedback.
-
Hi, I can't, since I'm using vanilla js. All the best, Lukáš On Aug 8, 2022 16:38, fromanother ***@***.***> wrote:
Can confirm using import 'flowbite' is not working in (using create-react-app).
Importing via CDN works.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Did anyone manage to import the flowbite.js in a next project? I tried adding it via next/script and via _app, but both do not seem to pick up the file. |
Beta Was this translation helpful? Give feedback.
-
Hey peeps, As of the latest Please try these solutions based on the new code base. Cheers, |
Beta Was this translation helpful? Give feedback.
-
I am not able to use flowbite in react . While using Navbar component ,it is saying Navbar is not defined.Can someone help me? |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
alot of problem with nextjs flowbite.. dropdown not working when dynamic rendering.. datepicker also not working... weird.... help anyone? |
Beta Was this translation helpful? Give feedback.
-
import 'flowbite'; Worked for me in SolidJS / TS - with Tailwind :) |
Beta Was this translation helpful? Give feedback.
-
in _app.tsx add this :
Edit : Or in your every layout / component / page file. I prefer put this on layout.
|
Beta Was this translation helpful? Give feedback.
-
Unsure why this worked, but I initially followed the instructions on flowbite next.js instructions. For some reason this set of directions worked for me: flowbite-react w/ nextjs instructions-> importing 'flowbite-react/tailwind' and using the content() and plugin() methods in my tailwind config, which works for both server side and client side components. |
Beta Was this translation helpful? Give feedback.
-
for people using symfony this link did the trick : https://symfonycasts.com/screencast/last-stack/js-packages You need to execute this command to recognize the bare module flowbite
|
Beta Was this translation helpful? Give feedback.
-
Hello,
I try to use flowbite with a ruby on rails project, 6.0.1, and tailwind 2.2.19 and webpack.
But when I add this import nothing happens, I have no css and javascript into my pack generated files :
It works partialy if I specified this imports :
But I have a lot of css regression in my website. Flowbite seems included tailwind 3.0 :
Found into the
flowbite.css
.And reload some html item like input :
I know it works with this config, but I don't know with the import
import "flowbite";
doesn't works !Are you an idea, even little for me ?
Beta Was this translation helpful? Give feedback.
All reactions