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

<x-widget.popover>

Popover Blade component for Laravel and Livewire

A panel of anything beside a button: a note, a short form, a profile card, links. On the native popover, so a table or a modal never clips it. Focus moves in as it opens and back as it closes. popover.open() from scripts, and popover-open events from Livewire.

php artisan bladewell:add popover
Also adds
Button, Icon
Used by
Calendar
Works with
Laravel 12 and 13, Livewire 3 and 4, Tailwind CSS 4.1+, PHP 8.3+
Guides
Real-time notification bell with Laravel Reverb · AI agent actions with Approve and Deny in Laravel

Usage

In scripts

window.popover is available once the popover script has loaded. <x-widget.popover id="fees" label="About fees">…</x-widget.popover>

JavaScript
popover.open('fees');
popover.close('fees');
popover.toggle('fees');

// Or any element of the popover: its trigger, its panel, or something inside it.
popover.close(document.querySelector('#fees-panel [data-popover-close]'));

Livewire

Inside a Livewire component, an open popover stays open through every render, with focus where it was, so wire:click and wire:model inside it work as anywhere else. Open and close it from the component with $this->dispatch('popover-open', id: 'filters') and 'popover-close', using the trigger's id.

Blade
<x-widget.popover id="filters" trigger="Filters" title="Filters">
    <x-widget.button wire:click="clearFilters" size="sm" variant="neutral">Clear filters</x-widget.button>
</x-widget.popover>

Examples

Basic

With only a label, the trigger is an icon button. The panel takes anything; text alone gets focus itself, so screen readers read it from the top. Esc, a click outside or Tab closes it, and focus goes back to the button. For a menu of actions, use the dropdown.

Transfer fee: $1.50

Show code
Blade
<p class="flex items-center gap-2 text-sm">
    Transfer fee: $1.50
    <x-widget.popover label="About the transfer fee" size="sm" variant="tertiary">
        <p>A flat fee for each transfer, whatever the amount. Transfers between your own wallets are free.</p>
    </x-widget.popover>
</p>

With title

title adds a heading that names the panel for screen readers. Focus moves to its first control; data-popover-close on a button closes it. align lines the panel up with the trigger's start, center or end.

Show code
Blade
<x-widget.popover id="share-report" trigger="Share" title="Share this report" align="start">
    <p class="text-foreground/70">Anyone with the link can view it. It expires in 7 days.</p>
    <div class="mt-3 flex items-center gap-2">
        <span class="bg-field min-w-0 flex-1 truncate rounded-xl px-3 py-2 text-xs">https://example.com/r/q3-2026</span>
        <x-widget.button size="sm" data-popover-close>Done</x-widget.button>
    </div>
</x-widget.popover>

Custom trigger

A trigger slot takes your own markup: here a name and initials. Keep links and buttons out of it, since the trigger is one button; they go in the panel. width sets the panel's width: sm, md or lg.

Show code
Blade
<x-widget.popover label="Amelia Chen's profile" width="sm" align="start">
    <x-slot:trigger>
        <span class="bg-primary/10 text-primary grid size-9 place-items-center rounded-full text-sm font-semibold" aria-hidden="true">AC</span>
        <span class="text-sm font-medium">Amelia Chen</span>
    </x-slot:trigger>

    <p class="font-semibold">Amelia Chen</p>
    <p class="text-foreground/70 text-xs">Finance lead · Singapore</p>
    <div class="mt-3 flex flex-col gap-1">
        <a href="#profile" class="text-link hover:text-link-hover underline-offset-4 hover:underline">View profile</a>
        <a href="#message" class="text-link hover:text-link-hover underline-offset-4 hover:underline">Send a message</a>
    </div>
</x-widget.popover>

Props

Other attributes, such as autocomplete or data-*, are passed through to the element. class styles the component's outer wrapper.

<x-widget.popover>

Prop Default Description
id null The trigger button's id; scripts open the popover by it (popover.open('{id}')), so it must be unique. Made up when left out.
trigger null Text for a button with a chevron, or a trigger slot with your own markup. Without either, the trigger is an icon-only button.
label null The trigger's name for screen readers. Required for the icon-only trigger.
icon 'info' The icon-only trigger's icon.
variant 'neutral' The trigger's look, as on the button: primary, secondary, tertiary, danger, neutral or link.
size 'md' The trigger's size: sm, md or lg.
title null A heading at the top of the panel, which also names it for screen readers. Without one, the trigger names it.
width 'md' How wide the panel is: sm, md or lg.
align 'start' Which edge of the trigger the panel lines up with: start (left in left-to-right pages), center or end.

Accessibility

All 3 examples above are checked with axe-core against the WCAG 2.2 A and AA rules, in the light theme and the dark one, both as the page draws and with each popover, dialog, toast and tooltip opened, on every change. A change that fails can't be merged. Where axe can't decide, such as contrast on SVG text, the test measures the colours itself instead of letting it pass.

Automated checks can't judge everything: how it sounds in a screen reader, and how it feels to use from the keyboard, still need a person. Check those on your own pages too.

Source

What bladewell:add popover writes to your app with the default namespaces. Prefer to copy by hand? Take these files, plus the ones from the components it also adds , and the theme and base CSS.

resources/views/components/widget/popover/index.blade.php Show
index.blade.php
resources/js/widget/popover/index.js Show
index.js
app/View/Widget/ElementIds.php Show
ElementIds.php