forxer / blade-ui-kit-bootstrap
Blade UI Kit components with Bootstrap styles and classes
Requires
- php: ^8.2
- forxer/generic-term-translations-for-laravel: ^1.0
- laravel/framework: ^10.0 || ^11.0
Requires (Dev)
- driftingly/rector-laravel: ^1.2.4
- laravel/pint: ^1.18.1
- rector/rector: ^1.2.8
- dev-main
- 0.24.3
- 0.24.2
- 0.24.1
- 0.24.0
- 0.23.1
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.1
- 0.20.0
- 0.19.2
- 0.19.1
- 0.19.0
- 0.18.0
- 0.17.3
- 0.17.2
- 0.17.1
- 0.17.0
- 0.16.1
- 0.16.0
- 0.15.0
- 0.14.5
- 0.14.4
- 0.14.3
- 0.14.2
- 0.14.1
- 0.14.0
- 0.13.1
- 0.13.0
- 0.12.2
- 0.12.1
- 0.12.0
- 0.11.1
- 0.11.0
- 0.10.0
- 0.9.1
- 0.9.0
- 0.8.4
- 0.8.3
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.0
- 0.6
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
- dev-develop
This package is auto-updated.
Last update: 2024-12-04 15:20:44 UTC
README
This package provides several Blade components prepared for use with Bootstrap (4 and/or 5).
Well yes: not everyone uses Tailwind CSS 😊 ; and old projects continue to live and evolve with Bootstrap.
Example
For example a simple form with Bootstrap 5:
<x-form action="http://example.com"> <div class="mb-3"> <x-label for="title" /> <x-input name="title" /> <x-error field="title" /> </div> <x-btn-save /> </x-form>
Will render the following HTML:
<form method="POST" action="http://example.com" novalidate> <input type="hidden" name="_token" value="..."> <input type="hidden" name="_method" value="POST"> <div class="mb-3"> <label for="title" class="form-label"> Title </label> <input name="title" type="text" id="title" class="form-control" /> </div> <button type="submit" class="btn btn-primary"> Save </button> </form>
And if there are validation errors:
<!-- ... --> <label for="title" class="form-label"> Title </label> <input name="title" type="text" id="title" class="form-control is-invalid" aria-describedby="validation-title-feedback" /> <div id="validation-title-feedback" class="invalid-feedback"> The title field is mandatory. </div> <!-- ... -->
Index
Why and thanks
This package was initially an extension of Blade UI Kit to provide pre-styled components for Bootstrap. But by making it evolve we decided to decouple it from its parent. This simplifies the code as well as its use in our case.
This package is therefore largely inspired by Blade UI Kit. A large part of the documentation comes from it. And we sincerely thank its contributors for the idea and what they have developed.