GithubHelp home page GithubHelp logo

themesberg / flowbite Goto Github PK

View Code? Open in Web Editor NEW
6.9K 39.0 683.0 18.02 MB

Open-source UI component library and front-end development framework based on Tailwind CSS

Home Page: https://flowbite.com

License: MIT License

JavaScript 23.32% HTML 39.15% CSS 4.67% TypeScript 32.86%
css html tailwindcss components design-system ui-components ui-library ui-framework javascript figma

flowbite's People

Contributors

abidra avatar adkik avatar alessiogr avatar alexandrunastase avatar alexmnet avatar alorence avatar arthur-clq avatar arthurgeek avatar arun9650 avatar azimwarsii avatar bartkieft avatar catherinekiiru avatar cordosvictor avatar corwindev avatar daveholst avatar dissto avatar godnondsilva avatar jdavidferreira avatar jmnda-dev avatar jneuendorf avatar joaopalmeiro avatar ker0x avatar lexachoc avatar manal-el avatar robert1508 avatar shinokada avatar szepeviktor avatar tofuninjah avatar xenolithviktor avatar zoltanszogyenyi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flowbite's Issues

Is missing a blank space?

Suspected error in navbar:

<button data-collapse-toggle="mobile-menu" type="button" class="inline-flex items-center p-2 ml-3 text-sm text-gray-500 rounded-lg md:hidden hover:bg-gray-100focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600" aria-controls="mobile-menu-2" aria-expanded="false">

<button data-collapse-toggle="mobile-menu-2" type="button" class="inline-flex items-center p-2 ml-1 text-sm text-gray-500 rounded-lg md:hidden hover:bg-gray-100focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600" aria-controls="mobile-menu-2" aria-expanded="false">

<button data-collapse-toggle="mobile-menu-3" type="button" class="inline-flex items-center p-2 ml-3 text-sm text-gray-500 rounded-lg md:hidden hover:bg-gray-100focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600" aria-controls="mobile-menu-3" aria-expanded="false">

<button data-collapse-toggle="mobile-menu-4" type="button" class="inline-flex items-center p-2 text-sm text-gray-500 rounded-lg md:hidden hover:bg-gray-100focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600" aria-controls="mobile-menu-4" aria-expanded="false">

Is the class name "hover:bg-gray-100focus:outline-none" missing a blank space in the middle?

closeAlert function for alert

Is your feature request related to a problem? Please describe.

I am using Flowbite with Svelte. When I click a link in an alert take me to another page. When I click the browser button to go back to a page, the close button on the alert doesn't work. I need to refresh the page to close it.

Describe the solution you'd like

The modal has the toggleModal function to toggle. If the alert has closeAlert function, the button can run the event handler to fire the closeAlert.

Build flowbite for svelte js

Hi.
React or vue are need a flowbite components and i think you can create component for svelte js and this is good idea .

Datepicker locale

Hi,

I have installed the datepicker from then CDN and it works just fine. I can change the format with datepicker-format="dd/mm/yyyy". I try now to change the locale with datepicker-locale="fr-FR" and/or datepicker-language="fr". But the locale is still "en". Did I miss something ?

Thanks.

mini-svg-data-uri dependency

Forgive my drive by issue filing but I noticed that mini-svg-data-uri is a dependency (in plugin.js).
It seems that you're just using it for background images. Couldn't this be done at compile time?

default integration doesn't seem to work for nuxt js

Is your feature request related to a problem? Please describe.
the methods that are described in the default quickstart guide doesn't seem to work for nuxt.js v2.15. please elaborate it.

Describe the solution you'd like
a proper guide on how to integrate with some document /video on how to integrate with different frontend frameworks. (in my case vue js applications)

[BUG] Errors after installing Flowbite

Describe the bug
I have a basic TypeScript Vue 3 Script Setup + TailwindCSS app with login form and a home page that creates and load posts. It was working like a charm before installing Flowbite.

To Reproduce
Steps to reproduce the behavior:

  1. Installed Flowbite
  2. Added the plugin in the tailwind.config.js
  3. Imported in the main.ts
  4. See error

Expected behavior
Wanted to use the Tooltip component to try Flowbite for first time.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11 Home 64bit latest
  • Browser: Chrome latest
  • Editor: VSCode latest
  • npm packages versions:

image

Smartphone (please complete the following information):

Additional context
Uninstalling Flowbite fixes the errors.

[Feature request] [Documentation]: Ensure an order of classes for each component

Sorry if this is not the correct place to add a feature request.

Looking at the documentation, it's really hard to see which of the classes are part of the base component (they're the same in all variations) and which are specific to that variation. Take a look here: https://flowbite.com/docs/components/buttons/.

I'd like to propose that all classes that are part of the base component comes either first or last, making it much easier to understand what are the different classes.

Dark mode switcher + styles

We already have the styles for a dark mode so we're thinking about building a switcher and implement a dark mode using the dark mode functionality from Tailwind CSS.

Add Right to Left Support

Hello to Flowbite team

Some sites are right to left.
But Flowbite may not work properly on these sites !!!!

Do you have a plan to add right-to-left support?
Can I help you add this feature?

Not able to set up Flowbite on SvelteKit

Describe the bug

I'm trying to install Flowbite on SvelteKit.
When I run npm run dev, I get an error:

document is not defined
ReferenceError: document is not defined
    at Object.745 (/Users/shinichiokada/Svelte/flowbite/node_modules/@themesberg/flowbite/dist/flowbite.bundle.js:17:1)
    at __webpack_require__ (/Users/shinichiokada/Svelte/flowbite/node_modules/@themesberg/flowbite/dist/flowbite.bundle.js:138:41)
    at /Users/shinichiokada/Svelte/flowbite/node_modules/@themesberg/flowbite/dist/flowbite.bundle.js:151:16
    at /Users/shinichiokada/Svelte/flowbite/node_modules/@themesberg/flowbite/dist/flowbite.bundle.js:2245:3
    at Object.<anonymous> (/Users/shinichiokada/Svelte/flowbite/node_modules/@themesberg/flowbite/dist/flowbite.bundle.js:2247:12)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:190:29)

To Reproduce

Install SvelteKit:

npm init svelte@next flowbite

Install Tailwind Css and Flowbite:

cd flowbite
npm install
npx svelte-add@latest tailwindcss
npm i @themesberg/flowbite

Update the TailwindCSS config.

In the tailwind.config.cjs file:

const config = {
  content: [
    "./src/**/*.{html,js,svelte,ts}",
    "./node_modules/@themesberg/flowbite/**/*.js"
  ],

  theme: {
    extend: {},
  },

  plugins: [
     require('@themesberg/flowbite/plugin')
  ],
};

module.exports = config;

Adding flowbite to routes/__layout.svelte:

<script>
  import "../app.css";
  import "@themesberg/flowbite";
</script>

<slot />

Expected behavior

No error.

Screenshots
image

Desktop (please complete the following information):

  • OS: macOS v12.1
  • Browser chrome, brave

DatePicker options

Hello,

I cant figure out how I can pass option to the datepicker, using javascript.

I tried

new Datepicker(datepickerEl, {
    autohide: true,
    format: 'mm/dd/yyyy',
});

But it does not work. My Datepicker is displayed and works but I cannot change any option using JS declaration.
What did I miss ?

Javascript doesn't work in Vue3

Hey there,
I am using a fresh project with tailwind2, flowbite 1.1.1 and vue3. The backend stack ist laravel 8 (php8) with inertia.js.
If I'm creating a modal inside a Vue component, then I can't open/toggle the model (data-modal-toggle="default-modal" is set to the button) .
It only works, if i move the button and modal out of the component, into the final html generated site (with Blade Template Engin).
It affects not only the modal, but also the alert dismiss button and basically everything that need flowbite javascript.

Has someone the same issue and know a workaround?

Interactive Tabs Disappear content

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Interactive tabs'
  2. Click on Default active tab two times
  3. Tab content will disappear and you have to click another and back.

Expected behavior
Content still will be shown

Screenshots
X

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Chrome
  • Version 97.0.4692.71

Asp.Net Blazor support

Is your feature request related to a problem? Please describe.
As a .NET developer, I would love to use this library in my Blazor project

Describe the solution you'd like
A Nuget package, similar to NPM for React and Vue.

Button code examples have margins by default

I used a couple of buttons on one of my projects recently. The code that I copied includes exterior margins that effect the page layout when used without editing.

I think it would be best if another solution was implemented as to how the elements are displayed on flowbite.com. That way it wouldn't cause unnecessary debugging to potential implementations.

[Bug report] Tab content disapear when you click the current tab

Hello everyone,
I found an error on the "Interactive Tabs" Component,
As soon as the page launches, if you click on the current tab (the tab that is active), the "tab content" just disappear.
This error happens on the documentation page too:
https://flowbite.com/docs/components/tabs/#interactive-tabs
Go to the interactive tabs section, and click on the Dashboard tab

(Sorry if you don't understand something, my english is a little bad)

JS elements not working in Webpack with Tailwind v3

Describe the bug
I have a fresh installation of Tailwindcss 3 and latest version of Flowbite installed via NPM and using Webpack 5 as my bundler.
Flowbite styles are working perfectly but all JS powered elements aren't working it seems.

To Reproduce
Steps to reproduce the behavior:

  1. Check out https://github.com/Dizzzlectic/flowbite-test
  2. Install dependencies (npm install)
  3. Run the project (npm run)
  4. Try to dismiss any of the alerts

Expected behavior
JS elements should be working, but they don't seem to be

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows 11
  • Browser [e.g. chrome, safari] Firefox
  • Version [e.g. 22] 95.0.2

Additional context
Add any other context about the problem here.

flowbite not working with NextJS

Issue

  • We have installed flowbite to our react project by following recommended steps via npm. We added it to tailwind config etc
  • The code is just not working properly. The effects (e.g. tooltip) do not show on hover. If we try to import it directly (via import '@themesberg/flowbite'; we get an error document not found.
  • Is it correct to inject the script just with <script src="../path/to/@themesberg/flowbite/dist/flowbite.bundle.js"></script>? Is the path/to just a placeholder for another custom local path?
  • We are using NextJS. I think the issue could be related to SSR but I am not sure.
    Any pointers?

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.