Git Product home page Git Product logo

flowbite-next-starter's Introduction

This is a Next.js 14.x project bootstrapped with create-next-app.

Live demo: https://flowbite-next-starter.vercel.app/

It also includes:

Getting started

Next.js requires Node.js.

Install the dependencies:

npm i

Now you can run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/(dashboard)/content.tsx. The page auto-updates as you edit the file.

Add flowbite-react to next on your own

Follow these steps to add flowbite-react to a next project without cloning this repo.

Requirements

How-to

Create a new next starter project:

npx create-next-app@latest --typescript
cd my-app

Install tailwindcss and flowbite-react:

npm i --save-dev autoprefixer postcss
npm i --save tailwindcss flowbite-react

Create postcss.config.cjs:

module.exports = {
  plugins: {
    autoprefixer: {},
    tailwindcss: {},
  },
};

Create tailwind.config.ts:

import flowbite from "flowbite/plugin";
import type { Config } from "tailwindcss";

const config: Config = {
  content: ["./app/**/*.{ts,tsx}", "./node_modules/flowbite-react/lib/**/*.js"],
  plugins: [flowbite],
};

export default config;

And replace the contents of app/globals.css by:

@tailwind base;
@tailwind components;
@tailwind utilities;

Start using flowbite-react inside any app/**/page.tsx!

"use client";

import { Alert } from "flowbite-react";

export default function MyPage() {
  return <Alert color="info">Alert!</Alert>;
}

Learn more

About flowbite

Flowbite is an open source collection of UI components built with the utility classes from Tailwind CSS that you can use as a starting point when coding user interfaces and websites.

In this repository, we setup flowbite-react for you with examples of how to use the React components in app/(dashboard)/content.tsx.

About next

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out the Next.js deployment documentation for more details.

flowbite-next-starter's People

Contributors

tulup-conner avatar kazoottt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.