我试着在我的laravel项目中添加流苏。我使用的是9和Vite。
我遵循以下步骤:
npm i flowbiteplugins: [require('@tailwindcss/forms'), require('@tailwindcss/typography'), require('flowbite/plugin')],
import Flowbite from 'flowbite';
然后是npm run dev
我也尝试过添加cdn链接,但它不起作用。
请有人建议最好的插件与顺风css使用。由于在顺风中没有基本的js组件,如工具提示、下拉列表等。
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);
},
});发布于 2022-10-12 08:08:26
如果您想要一些逻辑,可以使用它:https://headlessui.com/
关于Flowbite + Nuxt设置,如下所示:https://stackoverflow.com/a/71835459/8816585
发布于 2022-10-13 20:05:58
这不是最好的解决方案,但您可以尝试在没有任何设置的情况下安装Flowbite:
./public/css/flowbite.min.css
<link href="{{ url('css/flowbite.min.css') }}" rel="stylesheet" />
<script src="{{ url('js/flowbite.js') }}" type="text/javascript"></script>https://stackoverflow.com/questions/74038347
复制相似问题