mikefrancis / laravel-ui
An unofficial collection of basic UI components powered by Tailwind
Installs: 87
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
Requires
- laravel/framework: ^10.0|^11.0
This package is auto-updated.
Last update: 2024-04-14 10:58:22 UTC
README
🚧 This README is a work in progress 🚧
An unofficial collection of basic UI components powered by Tailwind (and Alpine).
Installation
From your Laravel project, add as an auto-discovered dependency:
composer require mikefrancis/laravel-ui
Usage
Input
A HTML <input />
element wrapped in a <fieldset />
with a <label />
.
<x-ui::input type="email" name="email" label="Email" />
Select
A HTML <select />
element wrapped in a <fieldset />
with a <label />
.
<x-ui::select name="email" label="Email" :options="$options" :value="$value" />
Dropdown
A dropdown menu component.
<x-ui::dropdown-menu> <x-ui::dropdown-menu-item @click="openSomething"> Do a thing </x-ui::dropdown-menu-item> <x-ui::dropdown-menu-item href="/link/to/somewhere"> Do another thing </x-ui::dropdown-menu-item> </x-ui::dropdown-menu>
Modal
A modal component.
<x-ui::modal> Content inside the modal. </x-ui::modal>