Use with RedwoodJS - Flowbite React
Learn how to install Flowbite React for your RedwoodJS project and start developing modern full-stack web applications
#
Create project- Run the following command to create a new RedwoodJS project using the CLI:
yarn create redwood-app
- Create a new homepage using the CLI:
yarn redwood generate page home /
#
Setup Tailwind CSSInstall tailwindcss
using the CLI:
yarn rw setup ui tailwindcss
#
Install Flowbite React- Run the following command to install
flowbite-react
:
yarn add flowbite-react
- Add the Flowbite plugin to
tailwind.config.js
and include content fromflowbite-react
:
/** @type {import('tailwindcss').Config} */
export default {
content: [
// ...
'../node_modules/flowbite-react/lib/esm/**/*.js',
],
plugins: [
// ...
require('flowbite/plugin'),
],
};
#
Try it outNow that you have successfully installed Flowbite React you can start using the components from the library.
import { Button } from 'flowbite-react';
export default function HomePage() {
return <Button>Click me</Button>;
}