PHPackages                             ova-studio/laravel-bootstrap-components - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. ova-studio/laravel-bootstrap-components

ActiveLibrary[Templating &amp; Views](/categories/templating)

ova-studio/laravel-bootstrap-components
=======================================

Laravel Bootstrap Blade components.

2.3.5(4y ago)1431MITBlade

Since Jun 2Pushed 4y agoCompare

[ Source](https://github.com/ova-studio/laravel-bootstrap-components)[ Packagist](https://packagist.org/packages/ova-studio/laravel-bootstrap-components)[ Docs](https://github.com/bastinald/laravel-bootstrap-components)[ RSS](/packages/ova-studio-laravel-bootstrap-components/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (46)Used By (0)

Laravel Bootstrap Components
============================

[](#laravel-bootstrap-components)

This package contains a set of useful Bootstrap Laravel Blade components. It promotes DRY principles and allows you to keep your HTML nice and clean. Components include alerts, badges, buttons, form inputs (with automatic error feedback), dropdowns, navs, pagination (responsive), and more. The components come with Laravel Livewire integration built in, so you can use them with or without Livewire.

Documentation
-------------

[](#documentation)

- [Requirements](#requirements)
- [Installation](#installation)
- [Components](#components)
    - [Alert](#alert)
    - [Badge](#badge)
    - [Button](#button)
    - [Check](#check)
    - [Close](#close)
    - [Color](#color)
    - [Datalist](#datalist)
    - [Dropdown](#dropdown)
    - [Dropdown Item](#dropdown-item)
    - [Icon](#icon)
    - [Image](#image)
    - [Input](#input)
    - [Link](#link)
    - [Nav Dropdown](#nav-dropdown)
    - [Nav Link](#nav-link)
    - [Pagination](#pagination)
    - [Progress](#progress)
    - [Radio](#radio)
    - [Select](#select)
    - [Textarea](#textarea)
- [Traits](#traits)
    - [WithModel](#withmodel)
- [Publishing Assets](#publishing-assets)
    - [Custom Views](#custom-views)
    - [Custom Icons](#custom-icons)

Requirements
------------

[](#requirements)

- Bootstrap 5 must be installed via webpack first
- Font Awesome must be installed to use icons

Installation
------------

[](#installation)

Require the package via composer:

```
composer require bastinald/laravel-bootstrap-components
```

Components
----------

[](#components)

### Alert

[](#alert)

A Bootstrap alert:

```

```

#### Available Props &amp; Slots

[](#available-props--slots)

- `icon`: Font Awesome icon to show before label e.g. `cog`, `envelope`
- `label`: label to display, can also be placed in the `slot`
- `color`: Bootstrap color e.g. `primary`, `danger`, `success`
- `dismissible`: set the alert to be dismissible

---

### Badge

[](#badge)

A Bootstrap badge:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-1)

- `icon`: Font Awesome icon to show before label e.g. `cog`, `envelope`
- `label`: label to display, can also be placed in the `slot`
- `color`: Bootstrap color e.g. `primary`, `danger`, `success`

---

### Button

[](#button)

A Bootstrap button:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-2)

- `icon`: Font Awesome icon to show before label e.g. `cog`, `envelope`
- `label`: label to display, can also be placed in the `slot`
- `color`: Bootstrap color e.g. `primary`, `danger`, `success`
- `size`: Bootstrap button size e.g. `sm`, `lg`
- `type`: button type e.g. `button`, `submit`
- `route`: sets the `href` to a route
- `url`: sets the `href` to a url
- `href`: sets the `href`
- `dismiss`: a `data-bs-dismiss` value e.g. `alert`, `modal`
- `toggle`: a `data-bs-toggle` value e.g. `collapse`, `dropdown`
- `click`: Livewire action on click
- `confirm`: prompts the user for confirmation on click

---

### Check

[](#check)

A Bootstrap checkbox input:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-3)

- `label`: label to display above the input
- `checkLabel`: label to display beside the input
- `help`: helper label to display under the input
- `switch`: style the input as a switch
- `model`: Livewire model property key
- `lazy`: bind Livewire data on change

---

### Close

[](#close)

A Bootstrap close button:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-4)

- `color`: Bootstrap close color e.g. `white`
- `dismiss`: a `data-bs-dismiss` value e.g. `alert`, `modal`

---

### Color

[](#color)

A Bootstrap color picker input:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-5)

- `label`: label to display above the input
- `icon`: Font Awesome icon to show before input e.g. `cog`, `envelope`
- `prepend`: addon to display before input, can be used via named slot
- `append`: addon to display after input, can be used via named slot
- `size`: Bootstrap input size e.g. `sm`, `lg`
- `help`: helper label to display under the input
- `model`: Livewire model property key
- `lazy`: bind Livewire data on change

---

### Datalist

[](#datalist)

A Bootstrap datalist input:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-6)

- `label`: label to display above the input
- `options`: array of input options e.g. `['Red', 'Blue']`
- `icon`: Font Awesome icon to show before input e.g. `cog`, `envelope`
- `prepend`: addon to display before input, can be used via named slot
- `append`: addon to display after input, can be used via named slot
- `size`: Bootstrap input size e.g. `sm`, `lg`
- `help`: helper label to display under the input
- `model`: Livewire model property key
- `debounce`: time in ms to bind Livewire data on keyup e.g. `500`
- `lazy`: bind Livewire data on change

---

### Desc

[](#desc)

A description list:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-7)

- `tern`: the description list term
- `details`: the description list details, can also be placed in the `slot`
- `date`: date to use instead of details (for use with [Laravel Timezone](https://github.com/jamesmills/laravel-timezone))

---

### Dropdown

[](#dropdown)

A Bootstrap dropdown:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-8)

- `icon`: Font Awesome icon to show before label e.g. `cog`, `envelope`
- `label`: dropdown label to display, can be used via named slot
- `items`: dropdown items, can also be placed in the `slot`
- `color`: Bootstrap color e.g. `primary`, `danger`, `success`
- `size`: Bootstrap button size e.g. `sm`, `lg`

---

### Dropdown Item

[](#dropdown-item)

A Bootstrap dropdown menu item:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-9)

- `icon`: Font Awesome icon to show before label e.g. `cog`, `envelope`
- `label`: label to display, can also be placed in the `slot`
- `route`: sets the `href` to a route
- `url`: sets the `href` to a url
- `href`: sets the `href`

---

### Form

[](#form)

A Bootstrap form:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-10)

- `submit`: Livewire action on submit

### Icon

[](#icon)

A Font Awesome icon:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-11)

- `name`: Font Awesome icon name e.g. `cog`, `rocket`
- `style`: Font Awesome icon style e.g. `solid`, `regular`, `brands`
- `size`: Font Awesome icon size e.g. `sm`, `lg`, `3x`, `5x`
- `color`: Bootstrap color e.g. `primary`, `danger`, `success`
- `spin`: sets the icon to use a spin animation
- `pulse`: sets the icon to use a pulse animation

---

### Image

[](#image)

An image:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-12)

- `asset`: sets the `src` to an asset
- `src`: sets the `src`
- `fluid`: sets the image to be fluid width
- `thumbnail`: sets the image to use thumbnail styling
- `rounded`: sets the image to have rounded corners

---

### Input

[](#input)

A Bootstrap text input:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-13)

- `label`: label to display above the input
- `type`: input type e.g. `text`, `email`
- `icon`: Font Awesome icon to show before input e.g. `cog`, `envelope`
- `prepend`: addon to display before input, can be used via named slot
- `append`: addon to display after input, can be used via named slot
- `size`: Bootstrap input size e.g. `sm`, `lg`
- `help`: helper label to display under the input
- `model`: Livewire model property key
- `debounce`: time in ms to bind Livewire data on keyup e.g. `500`
- `lazy`: bind Livewire data on change

---

### Link

[](#link)

A hyperlink:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-14)

- `icon`: Font Awesome icon to show before label e.g. `cog`, `envelope`
- `label`: label to display, can also be placed in the `slot`
- `route`: sets the `href` to a route
- `url`: sets the `href` to a url
- `href`: sets the `href`

---

### Nav Dropdown

[](#nav-dropdown)

A Bootstrap nav dropdown:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-15)

- `icon`: Font Awesome icon to show before label e.g. `cog`, `envelope`
- `label`: dropdown label to display, can be used via named slot
- `items`: dropdown items, can also be placed in the `slot`

---

### Nav Link

[](#nav-link)

A Bootstrap nav link:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-16)

- `icon`: Font Awesome icon to show before label e.g. `cog`, `envelope`
- `label`: label to display, can also be placed in the `slot`
- `route`: sets the `href` to a route
- `url`: sets the `href` to a url
- `href`: sets the `href`

---

### Pagination

[](#pagination)

Responsive Bootstrap pagination links:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-17)

- `links`: paginated Laravel models
- `justify`: Bootstrap justification e.g. `start`, `end`

---

### Progress

[](#progress)

A Bootstrap progress bar:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-18)

- `label`: label to display inside the progress bar
- `percent`: percentage of the progress bar
- `color`: Bootstrap color e.g. `primary`, `danger`, `success`
- `height`: height of the progress bar in pixels
- `animated`: animate the progress bar
- `striped`: use striped styling for the progress bar

---

### Radio

[](#radio)

A Bootstrap radio input:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-19)

- `label`: label to display above the input
- `options`: array of input options e.g. `['Red', 'Blue']`
- `help`: helper label to display under the input
- `switch`: sets the input to use a switch style
- `model`: Livewire model property key
- `lazy`: bind Livewire data on change

---

### Select

[](#select)

A Bootstrap select input:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-20)

- `label`: label to display above the input
- `placeholder`: placeholder to use for the empty first option
- `options`: array of input options e.g. `['Red', 'Blue']`
- `icon`: Font Awesome icon to show before input e.g. `cog`, `envelope`
- `prepend`: addon to display before input, can be used via named slot
- `append`: addon to display after input, can be used via named slot
- `size`: Bootstrap input size e.g. `sm`, `lg`
- `help`: helper label to display under the input
- `model`: Livewire model property key
- `lazy`: bind Livewire data on change

---

### Textarea

[](#textarea)

A Bootstrap textarea input:

```

```

#### Available Props &amp; Slots

[](#available-props--slots-21)

- `label`: label to display above the input
- `icon`: Font Awesome icon to show before input e.g. `cog`, `envelope`
- `prepend`: addon to display before input, can be used via named slot
- `append`: addon to display after input, can be used via named slot
- `size`: Bootstrap input size e.g. `sm`, `lg`
- `help`: helper label to display under the input
- `model`: Livewire model property key
- `debounce`: time in ms to bind Livewire data on keyup e.g. `500`
- `lazy`: bind Livewire data on change

Traits
------

[](#traits)

### WithModel

[](#withmodel)

This trait makes form data model manipulation a breeze. No more having to create a Livewire component property for every single form input. All form data will be placed inside the `$model` property array.

#### Getting Model Data

[](#getting-model-data)

Get the model data as a collection:

```
$collection = $this->model();
```

#### Setting Model Data

[](#setting-model-data)

Set a single value:

```
$this->setModel('name', 'Kevin');
```

Set values using Eloquent model data:

```
$this->setModel(User::first());
```

Set values using an array:

```
$this->setModel([
    'name' => 'Kevin',
    'email' => 'kevin@example.com',
]);
```

#### Working With Arrays

[](#working-with-arrays)

Add an empty array item:

```
$this->addModelItem('locations');
```

Remove an array item by its key:

```
$this->removeModelItem('locations', 3);
```

Order an array item by its key &amp; direction:

```
$this->orderModelItem('locations', 3, 'up');
```

The direction should be `up` or `down`.

#### Binding Model Data

[](#binding-model-data)

Package components work with this trait via the `model` attribute:

```

```

#### Validating Model Data

[](#validating-model-data)

Use the `validateModel` method to validate model data:

```
$this->validateModel([
    'name' => ['required'],
    'email' => ['required', 'email'],
]);
```

This method works just like the Livewire `validate` method, so you can specify your rules in a separate `rules` method if you prefer.

Publishing Assets
-----------------

[](#publishing-assets)

### Custom Views

[](#custom-views)

Use your own component views by publishing the package views:

```
php artisan vendor:publish --tag=laravel-bootstrap-components:views
```

Now edit the files inside `resources/views/vendor/bs`. The package will use these files to render the components.

### Custom Icons

[](#custom-icons)

Use your own font icons by publishing the package config:

```
php artisan vendor:publish --tag=laravel-bootstrap-components:config
```

Now edit the `icon_class_prefix` value inside `config/laravel-bootstrap-components.php`. The package will use this class to render the icons.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 93.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Recently: every ~55 days

Total

45

Last Release

1496d ago

Major Versions

1.1.6 → 2.0.02021-06-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/aeeb7d7e5372c79395d4e3acba921eb007be863eae75245f82440ff753e1eb5f?d=identicon)[chaker2710](/maintainers/chaker2710)

---

Top Contributors

[![bastinald](https://avatars.githubusercontent.com/u/82109804?v=4)](https://github.com/bastinald "bastinald (46 commits)")[![chaker2710](https://avatars.githubusercontent.com/u/46485085?v=4)](https://github.com/chaker2710 "chaker2710 (3 commits)")

### Embed Badge

![Health badge](/badges/ova-studio-laravel-bootstrap-components/health.svg)

```
[![Health](https://phpackages.com/badges/ova-studio-laravel-bootstrap-components/health.svg)](https://phpackages.com/packages/ova-studio-laravel-bootstrap-components)
```

###  Alternatives

[cagilo/cagilo

A set of open-source Blade components for the Laravel Framework

172996.5k](/packages/cagilo-cagilo)[orchid/blade-icons

An easy way inline SVG images in your Blade templates.

223.4M9](/packages/orchid-blade-icons)[wireui/heroicons

The Tailwind Heroicons for laravel blade by WireUI

43390.8k5](/packages/wireui-heroicons)[stillat/antlers-components

2656.0k1](/packages/stillat-antlers-components)[itstructure/laravel-grid-view

Grid view for laravel framework

2546.6k2](/packages/itstructure-laravel-grid-view)[ycs77/inertia-laravel-ssr-head

Simple SSR Head for Inertia Laravel

3211.5k](/packages/ycs77-inertia-laravel-ssr-head)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
