I tried adding flowbite to my Laravel project. I am using Laravel version 9 with Vite.
So far, I did the following steps:
- Installed
flowbite
as a dependency:
npm i flowbite
- Added plugin in
tailwind.config.js
:
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
require('flowbite/plugin')
],
- I imported it in
App.js
:
import Flowbite from 'flowbite';
4. Then I ran the app:
```shell
npm run dev
I also tried adding it using CDN links, but it's not working.
Could someone please tell me what I am doing wrong? Or maybe you can suggest me a better library to use with Tailwind CSS, as Tailwind doesn't provide js components like tooltip, dropdown, etc.
createInertiaApp({
title: (title) => `${title} - ${appName}`,
resolve: (name) => resolvePageComponent(`./Pages/${name}.vue`, import.meta.glob('./Pages/**/*.vue')),
setup({ el, app, props, plugin }) {
return createApp({ render: () => h(app, props) })
.use(plugin)
.use(ZiggyVue, Ziggy)
.mixin({ components: { FilePond } })
.mount(el);
},
});