beartropy/ui
Beartropy UI is a small Laravel UI package providing ready-made components and helpers to speed up building admin and front-end screens. Drop in common layouts, forms, and UI utilities to get a consistent look fast with minimal setup.
<x-bt-alert success>Message</x-bt-alert>
Alert → extends BeartropyComponentalert.blade.php (no base delegation)resources/views/presets/alert.php (flat color → classes)| Prop | PHP Type | Default | Blade Attribute |
|---|---|---|---|
| noIcon | bool |
false |
:noIcon="true" |
| icon | ?string |
null |
icon="shield-check" |
| title | ?string |
null |
title="Heading" |
| dismissible | bool |
false |
:dismissible="true" |
| class | string |
'' |
class="extra" |
| color | ?string |
null |
color="blue" |
beartropy)Semantic (with preset icon): beartropy, success, info, warning, error
Named (no preset icon): red, blue, green, yellow, purple, pink, gray, orange, amber, lime, emerald, teal, cyan, sky, indigo, violet, rose, fuchsia, slate, stone, zinc, neutral
No size or variant magic attributes.
| Color | Icon |
|---|---|
| success | check-circle |
| info | exclamation-circle |
| warning | exclamation-triangle |
| error | x-circle |
| beartropy | (none) |
| Named colors | (none) |
| Slot | Description |
|---|---|
| default | Alert body content |
colors → {color} → {main, content, icon_wrapper, icon_class, title, slot, icon}
26 colors, flat (no variants). 5 semantic + 21 named.
{{-- Semantic with preset icon --}}
<x-bt-alert success>Saved.</x-bt-alert>
<x-bt-alert error title="Error">Something went wrong.</x-bt-alert>
{{-- Named color (no icon unless custom) --}}
<x-bt-alert blue>A blue alert.</x-bt-alert>
{{-- Custom icon --}}
<x-bt-alert blue icon="envelope">Email sent.</x-bt-alert>
{{-- No icon --}}
<x-bt-alert :noIcon="true" warning>Plain text.</x-bt-alert>
{{-- Dismissible --}}
<x-bt-alert :dismissible="true" info>Dismiss me.</x-bt-alert>
{{-- Title only --}}
<x-bt-alert success title="Done." />
{{-- Dynamic color --}}
<x-bt-alert :color="$type">{{ $message }}</x-bt-alert>
{{-- Rich content --}}
<x-bt-alert info title="Update">
<p>New version available.</p>
<x-bt-button sm blue label="Update" />
</x-bt-alert>
$size prop — single size, no size preset usedicon string — template correctly skips icon wrapper$dismissible adds Alpine button with [@click](https://github.com/click)="open = false" and opacity transition$class is appended to the preset's main classesHow can I help you explore Laravel packages today?