Skip to content

Laravel Blade Components ​

Opinionated Laravel Blade component library organised in ten families.

Families ​

FamilyDescription
contentTypography and inline content elements
dataTables of data
displayCards, badges, avatars, accordions and other blocks that show information
feedbackAlerts, banners, progress and placeholders
formForm controls, wrappers and validation
layoutStructural and semantic page elements
mediasImages, video, audio and embeds
navigationSteps, shortcuts and the bars of an application
overlayModal, drawer, popover, dropdown and tooltip, on native HTML
utilityThe one script of the library, with a CSP nonce, and what uses it

Aliases ​

Every component is registered under two aliases:

AliasExamplePurpose
x-zk-*<x-zk-input>Public usage in consumer apps
x-[family].*<x-form.input>Internal usage inside package templates

Attribute Forwarding ​

All components forward undeclared attributes to their root HTML element via $attributes. Any attribute not listed in a component's prop table passes through directly.

blade
<x-zk-input name="q" wire:model="query" x-bind:disabled="loading" data-tracking="search" />

Boolean Props ​

Boolean props accept PHP booleans (:prop="true") or bare HTML attributes (prop). Passing string "false" is also handled correctly via internal filter_var casting.

blade
{{-- All equivalent --}}
<x-zk-input name="email" required />
<x-zk-input name="email" :required="true" />
<x-zk-input name="email" required="true" />

Installation ​

bash
composer require zairakai/laravel-blade-components

Publish assets optionally:

bash
# Views only
php artisan vendor:publish --tag=zairakai-components

# Translations only
php artisan vendor:publish --tag=zairakai-lang

# Config only
php artisan vendor:publish --tag=zairakai-config

# Everything
php artisan vendor:publish --tag=zairakai-all

Documentation of 3.2.0 , built from c93e21f on 3.2.0 by pipeline #2919741884 on 2026-10-06.