how to use Flowbite in angular project?

Discussão em 'Angular' iniciado por Hossein Bajan, Outubro 31, 2024.

  1. I want to use Flowbite in my project.I did the following steps but it still doesn't work.


    1. I installed the tailwind first, Tailwind is working fine now.


    2. Then I installed Flowbite using npm, and add Flowbite as a plugin inside the tailwind.config.js file. Base on this link: https://flowbite.com/docs/getting-started/quickstart/

      npm i flowbite

    tailwind.config.js file ‍‍‍‍‍

    module.exports = {
    content: [
    "./src/**/*.{html,ts}",
    "./node_modules/flowbite/**/*.js"
    ],
    theme: {
    extend: {},
    },
    plugins: [require('flowbite/plugin')]
    }


    angular.js file ‍‍‍‍‍

    "architect": {
    "build": {
    "options": {
    "scripts": ["node_modules/flowbite/dist/flowbite.js"]
    },
    }


    I even used the package below, but it still doesn't work.

    flowbite-angular

    https://www.npmjs.com/package/flowbite-angular

    Continue reading...

Compartilhe esta Página