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-button>Label</x-bt-button>
Button → extends BeartropyComponentbutton.blade.php → delegates to base/button-base.blade.phpresources/views/presets/button.php (variant → color → classes)resources/views/presets/sizes.php| Prop | PHP Type | Default | Blade Attribute |
|---|---|---|---|
| type | ?string |
null |
type="submit" |
| href | ?string |
null |
href="/url" |
| disabled | ?bool |
false |
disabled or :disabled="$val" |
| iconStart | ?string |
null |
icon-start="envelope" |
| iconEnd | ?string |
null |
icon-end="arrow-right" |
| label | ?string |
null |
label="Click" |
| spinner | ?bool |
true |
:spinner="false" |
| iconSet | ?string |
config | icon-set="lucide" |
| iconVariant | ?string |
config | icon-variant="solid" |
solid)solid, soft, outline, ghost, tint, glass, gradient
beartropy)beartropy, red, blue, green, yellow, purple, pink, gray, orange, amber, lime, emerald, teal, cyan, sky, indigo, violet, rose, fuchsia, slate, stone, zinc, neutral
md)xs, sm, md, lg, xl
| Slot | Description |
|---|---|
| default | Button content (overrides label prop) |
| start | Content before icon-start |
| end | Content after icon-end |
href present → renders <a>href → renders <button type="{type}">wire:click → infers wire:targetwire:loading.class="opacity-0")wire:loading.attr="disabled":spinner="false"colors → {variant} → {color} → {bg, text, border, hover, focus, active, disabled}
7 variants × 24 colors = 168 color presets.
{{-- Basic --}}
<x-bt-button>Click</x-bt-button>
{{-- Variant + Color --}}
<x-bt-button soft blue>Soft Blue</x-bt-button>
{{-- Size --}}
<x-bt-button sm green>Small Green</x-bt-button>
{{-- Icons --}}
<x-bt-button icon-start="plus" green>Add Item</x-bt-button>
{{-- Link --}}
<x-bt-button href="/settings" ghost gray>Settings</x-bt-button>
{{-- Livewire --}}
<x-bt-button wire:click="save" green>Save</x-bt-button>
{{-- Dynamic color --}}
<x-bt-button :color="$status === 'active' ? 'green' : 'red'">{{ $status }}</x-bt-button>
{{-- Disabled --}}
<x-bt-button disabled>Disabled</x-bt-button>
'button' => [
'color' => env('BEARTROPY_UI_BUTTON_COLOR', 'beartropy'),
'size' => env('BEARTROPY_UI_BUTTON_SIZE', 'md'),
],
$tag default is null (template resolves: $tag ?? ($href ? 'a' : 'button'))wire:click value (extracts method name)label prop is used only when the default slot is emptyHow can I help you explore Laravel packages today?