The easiest way to get started with flowbite-react
is by using the create-flowbite-react
CLI.
Easily scaffold a flowbite-react
application using the most popular React frameworks and technologies available.
Run any of the following commands and answer the command prompt questions:
The CLI will prompt for the directory name, template to use, and whether to initialize a new git repository:
npx create-flowbite-react@latest
You can also pass command line arguments to set up a new project non-interactively. See npx create-flowbite-react@latest --help
:
npx create-flowbite-react@latest <project-directory> [options]
Check out the full list of official flowbite-react
template examples.
Name | Description |
---|---|
--template, -t <name> |
Specify your template |
--git |
Initialize a new git repository |
--help, -h |
Display available flags |
--version, -v |
Display CLI version |
Create a new project with a specific template:
npx create-flowbite-react@latest my-app --template react-router
# or using shortcut
npx create-flowbite-react@latest my-app -t react-router
Create a new project with a specific template version:
# Using dot notation for nested versions
npx create-flowbite-react@latest my-app --template react-router.framework
# or using shortcut
npx create-flowbite-react@latest my-app -t react-router.framework