Skip to content
Bladewell
Components
Accordion
Alert
Breadcrumbs
Button
Calendar
Chat
Clock
Command palette
Dropdown
Captcha
Checkbox
Colour picker
Date picker
Date range picker
File upload
Filter builder
Image cropper
Number
OTP
Password
Phone
Radio
Repeater
Search
Select
Show if
Slider
Sortable list
Switch
Tags input
Text input
Textarea
Time picker
Verification code
Field
Icon
Kanban
Auth layout
Sidebar layout
Modal
Pagination
Popover
Price roll
Progress
Stepper
Table
Tabs
Toast
Tooltip
Tooltip cursor
Tree
Docs
Installation
Why Bladewell
For AI agents
Guides
Build a Laravel form from your validation rules
Add a date range picker to a Laravel form
Laravel data table with sorting, filters, pagination
Editable table cells in Laravel with Livewire
A Livewire modal that stays open through re-renders
Using Blade components in Livewire 3 and 4
Two-factor authentication screens for Laravel Fortify
Passkey sign-in for Laravel with Fortify
Real-time notification bell with Laravel Reverb
AI agent actions with Approve and Deny in Laravel
Laravel AI chat with Livewire and streaming replies
Livewire multi-step form with validation per step
Toast notifications in Laravel and Livewire
Livewire file upload with progress and drag and drop
Laravel searchable select that loads from the database
Laravel Blade card, avatar and empty state patterns
Add charts and a rich text editor to a Laravel app
Compare
Bladewell vs Flux: a Free Alternative for Laravel
Bladewell vs Mary UI: daisyUI or Plain Blade
Bladewell vs WireUI: With or Without Alpine
Blade UI Kit Alternative for Laravel 12 and 13
Bladewell vs BladewindUI: Laravel Blade Components
Bladewell vs Sheaf UI: With or Without Alpine
Bladewell vs April UI: Package or Copied-in Code

Guides

Laravel Blade card, avatar and empty state patterns

Copyable Blade recipes for a card, avatar, status badge, empty state, loading skeleton and timeline, in your Tailwind theme's colours.

php artisan bladewell:add button icon

Uses Button and Icon. New to Bladewell? Install it first.

Recipes, not components

A card, an avatar or an empty state is markup and a few classes, with nothing to get wrong behind it: no keyboard handling, no state, nothing for Livewire to trip over. So these aren't Bladewell components to install and keep updated. They're recipes to paste and change, built on the same theme tokens as the components (bg-surface, border-line, text-muted, text-primary), so they follow your colours and your dark theme.

An AI agent writes these well. Point it at this page, which llms.txt lists, and what it makes will match the rest of the app.

Card

A bordered surface with a heading, a figure and actions. Make it a link by wrapping it in <a> instead of giving it buttons, never both.

A card
<article class="border-line bg-surface rounded-2xl border p-5 shadow-sm">
    <header class="flex items-start justify-between gap-4">
        <div>
            <h3 class="text-foreground font-semibold">Pro plan</h3>
            <p class="text-muted mt-1 text-sm">Renews on 1 November</p>
        </div>
        <x-widget.icon name="credit-card" class="text-foreground/60 size-5" />
    </header>

    <p class="text-foreground mt-4 text-2xl font-semibold tabular-nums">$29 <span class="text-muted text-sm font-normal">a month</span></p>

    <footer class="mt-5 flex gap-3">
        <x-widget.button size="sm" variant="neutral" href="/billing">Manage</x-widget.button>
        <x-widget.button size="sm" href="/billing/upgrade">Upgrade</x-widget.button>
    </footer>
</article>

Avatar

A photo when there is one, initials when there isn't. The initials stand in for a picture of the person, so they carry the person's name for screen readers. A stack overlaps them, ringed in the page colour.

An avatar, and a stack of them
@php
    // Two letters from the name, for when there's no photo: "Amelia Chen" → "AC".
    $initials = collect(explode(' ', $user->name))->map(fn (string $part): string => mb_substr($part, 0, 1))->take(2)->implode('');
@endphp

<span class="bg-primary/10 text-primary inline-grid size-10 place-items-center overflow-hidden rounded-full text-sm font-semibold">
    @if ($user->avatar_url ?? null)
        <img src="{{ $user->avatar_url }}" alt="{{ $user->name }}" class="size-full object-cover">
    @else
        {{-- The initials stand in for a picture of the person, so they carry the name for screen readers. --}}
        <span role="img" aria-label="{{ $user->name }}">{{ $initials }}</span>
    @endif
</span>

{{-- A stack: each overlaps the last, ringed in the page colour so they stay apart. --}}
<div role="group" aria-label="3 people" class="flex -space-x-2">
    @foreach (['Ana Silva', 'Ben Okafor', 'Chloé Martin'] as $name)
        <span role="img" aria-label="{{ $name }}" class="bg-field text-foreground ring-surface inline-grid size-8 place-items-center rounded-full text-xs font-semibold ring-2">{{ collect(explode(' ', $name))->map(fn (string $part): string => mb_substr($part, 0, 1))->implode('') }}</span>
    @endforeach
</div>

Status badge

One tone per state, from the theme. The word and a dot carry the meaning too, as colour alone can't. Inside a table, the table's own badge does the same.

Status badges
@php
    // One look per state, from the theme's tokens, so a dark theme changes them too. The text is the tone mixed with
    // the main text colour, so it stays readable (AA) on its own tint. Warning's yellow is too light for text at all:
    // its text stays the main colour, and the yellow is only the tint and the dot.
    $tones = [
        'paid' => 'bg-success/10 text-[color-mix(in_oklab,var(--color-success)_65%,var(--color-foreground))]',
        'pending' => 'bg-warning/20 text-foreground',
        'failed' => 'bg-error/10 text-[color-mix(in_oklab,var(--color-error)_75%,var(--color-foreground))]',
        'draft' => 'bg-field text-foreground/75',
    ];
@endphp

@foreach ($tones as $status => $tone)
    <span class="{{ $tone }} inline-flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-xs font-medium">
        {{-- A dot as well as the colour, and the word itself: colour alone can't carry the meaning. --}}
        <span @class(['size-1.5 rounded-full', $status === 'pending' ? 'bg-[color-mix(in_oklab,var(--color-warning)_80%,var(--color-foreground))]' : 'bg-current']) aria-hidden="true"></span>
        {{ ucfirst($status) }}
    </span>
@endforeach

Empty state

Say what will be here and how to make the first one. The table has its own empty state; this is for everywhere else.

An empty state
<div class="border-line flex flex-col items-center rounded-2xl border border-dashed px-6 py-12 text-center">
    <span class="bg-field grid size-12 place-items-center rounded-full">
        <x-widget.icon name="inbox" class="text-foreground/60 size-6" />
    </span>
    <h3 class="text-foreground mt-4 font-semibold">No invoices yet</h3>
    <p class="text-muted mt-1 max-w-sm text-sm">Invoices you send show up here, with their status and when they were paid.</p>
    <x-widget.button class="mt-5" icon-start="plus" href="/invoices/create">New invoice</x-widget.button>
</div>

Loading skeleton

Grey blocks in the shape of what's coming. A screen reader skips the blocks and finds "Loading orders…" in their place, and the pulse stops for people who ask for less motion. That text is read when someone reaches it, not announced as it appears. If people should hear when loading starts and ends, put the message in a role="status" element that's on the page before the loading begins, and change its text; then check it with a screen reader.

A loading skeleton
{{-- While something loads: grey blocks in its shape. A screen reader skips the blocks and finds "Loading orders…" in their
     place when it reaches them; it isn't announced by itself. motion-reduce stops the pulse for people who ask for less
     movement. --}}
<div aria-busy="true" class="grid gap-3">
    <span class="sr-only">Loading orders…</span>
    @foreach (range(1, 3) as $row)
        <div class="flex items-center gap-3" aria-hidden="true">
            <span class="bg-field size-10 shrink-0 animate-pulse rounded-full motion-reduce:animate-none"></span>
            <span class="grid flex-1 gap-2">
                <span class="bg-field h-3 w-2/5 animate-pulse rounded motion-reduce:animate-none"></span>
                <span class="bg-field h-3 w-3/5 animate-pulse rounded motion-reduce:animate-none"></span>
            </span>
        </div>
    @endforeach
</div>

Timeline

An ordered list with a line down its start edge, so it reads in order and flips for right-to-left pages.

A timeline
{{-- An ordered list, so screen readers say how many steps there are and which this is. role="list": with its numbers
     styled away, Safari would otherwise stop announcing it as a list. --}}
<ol role="list" class="border-line ms-2 border-s">
    @foreach ([['Order placed', '9 Oct, 09:12'], ['Paid', '9 Oct, 09:13'], ['Shipped', '10 Oct, 14:40']] as [$event, $at])
        <li class="relative ps-6 pb-6 last:pb-0">
            <span class="bg-primary ring-surface absolute -start-[5px] top-1.5 size-2.5 rounded-full ring-4" aria-hidden="true"></span>
            <p class="text-foreground text-sm font-medium">{{ $event }}</p>
            <p class="text-muted text-xs">{{ $at }}</p>
        </li>
    @endforeach
</ol>