0.38.3 • Published 4 months ago

flowbite-qwik v0.38.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

flowbite-qwik is an open source collection of UI components, built in Qwik, with utility classes from Tailwind CSS that you can use as a starting point for user interfaces and websites.

Online documentation

Table of Contents

Documentation

Documentation for flowbite-qwik is not yet finished.

If you want to learn more about Flowbite, visit Flowbite docs.

Getting started

To use flowbite-qwik, you just need to setup flowbite normally and install flowbite-qwik from npm.

flowbite can be included as a plugin into an existing Tailwind CSS project.

šŸ˜Ž Automatic way using CLI

Flowbite-qwik can be automatically installed using its CLI, simply use this command :

npx flowbite-qwik-cli@latest init

Click here for more details.

šŸ“ Manual way via npm

Make sure that you have Node.js and Tailwind CSS installed.

  1. Install flowbite as a dependency using npm by running the following command:
yarn add -D flowbite flowbite-qwik
pnpm add -D flowbite flowbite-qwik
npm i --save-dev flowbite flowbite-qwik
  1. Require flowbite as a plugin inside the tailwind.config.js file:
import flowbitePlugin from 'flowbite/plugin'

export default {
  theme: {
    extend: {
      animation: {
        'from-left': 'slideFromLeft 0.2s 1',
        'from-right': 'slideFromRight 0.2s 1',
      },
      keyframes: {
        slideFromLeft: {
          '0%': { transform: 'translateX(-100%)' },
          '100%': { transform: 'translateX(0)' },
        },
        slideFromRight: {
          '0%': { transform: 'translateX(100%)' },
          '100%': { transform: 'translateX(0)' },
        },
      },
    },
  },
  content: ['node_modules/flowbite-qwik/**/*.{cjs,mjs}', './src/**/*.{html,js,jsx,ts,tsx,mdx}'],
  plugins: [flowbitePlugin],
}
  1. Setup flowbite-qwik providers

In your src/root.tsx file, import the FlowbiteProvider and wrap your app with it and define the theme and toast position.

Default values are theme="blue" and toastPosition="top-right".

If you want to use the dark mode, you will also need to add the FlowbiteProviderHeader component in the head of your app.

import { FlowbiteProvider } from 'flowbite-qwik'

export default component$(() => {
  return (
    <QwikCityProvider>
      <head>
        <meta charSet="utf-8" />
        <RouterHead />
        // Add this line to detect user's system preference
        <FlowbiteProviderHeader />
      </head>
      <body lang="fr">
        // Add the FlowbiteProvider component to wrap your app
        <FlowbiteProvider toastPosition="top-right" theme="blue">
          <RouterOutlet />
        </FlowbiteProvider>
      </body>
    </QwikCityProvider>
  )
})

Components

Composables / hooks

  • useToasts
  • useDarkMode
  • useDebounce
  • useMediaQuery
  • useOuterClick
  • useToggle

Copyright and license

The Flowbite name and logos are trademarks of Crafty Dwarf Inc.

šŸ“ Read about the licensing terms

0.38.3

4 months ago

0.38.2

6 months ago

0.38.1

7 months ago

0.38.0

7 months ago

0.37.10

8 months ago

0.37.9

8 months ago

0.37.8

8 months ago

0.37.7

8 months ago

0.37.6

8 months ago

0.37.5

9 months ago

0.36.2

10 months ago

0.36.1

10 months ago

0.36.0

10 months ago

0.37.3

9 months ago

0.37.2

10 months ago

0.37.1

10 months ago

0.37.0

10 months ago

0.37.4

9 months ago

0.35.6

11 months ago

0.35.5

11 months ago

0.35.4

11 months ago

0.35.3

11 months ago

0.35.2

11 months ago

0.35.1

11 months ago

0.35.0

11 months ago

0.20.0

1 year ago

0.19.0

1 year ago

0.17.2

1 year ago

0.17.3

1 year ago

0.34.0

12 months ago

0.32.1

1 year ago

0.17.1

1 year ago

0.32.0

1 year ago

0.30.0

1 year ago

0.29.0

1 year ago

0.27.2

1 year ago

0.27.1

1 year ago

0.27.0

1 year ago

0.21.5

1 year ago

0.25.0

1 year ago

0.21.4

1 year ago

0.21.3

1 year ago

0.23.0

1 year ago

0.21.2

1 year ago

0.21.1

1 year ago

0.29.2

1 year ago

0.29.1

1 year ago

0.27.3

1 year ago

0.21.0

1 year ago

0.33.2

12 months ago

0.33.1

1 year ago

0.18.0

1 year ago

0.31.1

1 year ago

0.31.0

1 year ago

0.28.1

1 year ago

0.28.0

1 year ago

0.26.0

1 year ago

0.24.0

1 year ago

0.22.0

1 year ago

0.17.0

1 year ago

0.15.0

1 year ago

0.14.1

1 year ago

0.12.1

1 year ago

0.14.0

1 year ago

0.12.3

1 year ago

0.12.4

1 year ago

0.12.5

1 year ago

0.3.0

1 year ago

0.10.0

1 year ago

0.9.0

1 year ago

0.5.0

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.5.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.8

1 year ago