livewire / flux
The official UI component library for Livewire.
Installs: 203 072
Dependents: 6
Suggesters: 1
Security: 0
Stars: 612
Watchers: 19
Forks: 51
Open Issues: 24
Language:Blade
Requires
- php: ^8.1
- illuminate/console: ^10.0|^11.0|^12.0
- illuminate/support: ^10.0|^11.0|^12.0
- illuminate/view: ^10.0|^11.0|^12.0
- laravel/prompts: ^0.1|^0.2|^0.3
- livewire/livewire: ^3.5.19
- symfony/console: ^6.0|^7.0
- dev-main
- v2.0.2
- v2.0.1
- v2.0.0
- 1.x-dev
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.32
- v1.0.31
- v1.0.30
- v1.0.29
- v1.0.28
- v1.0.27
- v1.0.26
- v1.0.25
- v1.0.24
- v1.0.23
- v1.0.22
- v1.0.21
- v1.0.20
- v1.0.19
- v1.0.18
- v1.0.17
- v1.0.16
- v1.0.15
- v1.0.14
- v1.0.13
- v1.0.12
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v1.0.0-beta.5
- v1.0.0-beta.4
- v1.0.0-beta.3
- v1.0.0-beta.2
- v1.0.0-beta.1
- dev-josh/fix-anonymous-components-laravel-12
- dev-josh/fix-checkbox-and-radio-incorrect-variant-error
- dev-josh/fix-select-default-variant-windows-dark
- dev-josh/fix-file-input-name-output
- dev-josh/fix-checkbox-group-model-self
This package is auto-updated.
Last update: 2025-02-21 13:29:43 UTC
README
Flux is a robust, hand-crafted UI component library for Livewire applications. It's built using Tailwind CSS and provides a set of components that are easy to use and customize.
You can view the components in action at https://fluxui.dev.
Prerequisites
Flux requires the following before installing:
- Laravel v10.0+
- Livewire v3.5.19+
- Tailwind CSS v4.0+
Installation
Run the following command from your project's root directory:
composer require livewire/flux
Getting Started
1. Include Flux Assets
Add the @fluxAppearance
and @fluxScripts
Blade directives to your layout file:
<head> ... @fluxAppearance </head> <body> ... @fluxScripts </body>
2. Set up Tailwind CSS
Flux uses Tailwind CSS for its default styling. Add the following configuration to your resources/css/app.css
file:
@import 'tailwindcss'; @import '../../vendor/livewire/flux/dist/flux.css'; @custom-variant dark (&:where(.dark, .dark *));
If you don't have Tailwind installed, you can learn how to install it on the Tailwind website.
3. Use the Inter Font Family (Optional)
We recommend using the Inter font family. Add the following to your layout file:
<head> ... <link rel="preconnect" href="https://fonts.bunny.net"> <link href="https://fonts.bunny.net/css?family=inter:400,500,600&display=swap" rel="stylesheet" /> </head>
Configure Tailwind to use this font in your resources/css/app.css
:
@import 'tailwindcss'; @import '../../vendor/livewire/flux/dist/flux.css'; ... @theme { --font-sans: Inter, sans-serif; }
What's included?
The following components are included in the livewire/flux
package:
The rest of the Flux components are part of the paid (Pro) tier of Flux.
Purchase a "Pro" license key here: https://fluxui.dev/pricing
Pro Installation
If you have purchased a Flux Pro license, activate it using:
php artisan flux:activate
During activation, you'll be prompted for your email and license key.
Customization
To customize specific Flux components, publish their blade files using:
php artisan flux:publish
You'll be prompted to select which components to publish, or use --all
to publish everything.
Keeping Updated
To ensure you have the latest version of Flux, regularly update your dependencies:
composer update livewire/flux livewire/flux-pro
For more detailed documentation and guides, visit https://fluxui.dev/docs.