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-debug-breakpoints />
<x-bt-debug-breakpoints env="staging" :expanded="true" />
DebugBreakpoints extends BeartropyComponent (inherits HasPresets, HasErrorBag)debug-breakpoints.blade.php — inline Alpine.js, no separate JS module[@if](https://github.com/if) (app()->environment($env))| Prop | Type | Default | Blade Attribute |
|---|---|---|---|
| expanded | bool |
false |
:expanded="true" |
| env | string |
'local' |
env="staging" |
{
expanded: boolean, // From localStorage or $expanded prop
width: number, // window.innerWidth, updated on resize
toggle() {
// Flip expanded, persist to localStorage
}
}
[@if](https://github.com/if) (app()->environment($env))
div.fixed.bottom-0.right-0.z-[100][x-data][style="display:none"][x-show="true"]
├── div[x-show="expanded"] (expanded bar)
│ ├── div.font-bold (breakpoint labels: XS|SM|MD|LG|XL|2XL with responsive visibility)
│ ├── div.w-px (separator)
│ ├── div (width display: <span x-text="width"> px)
│ ├── div.w-px (separator)
│ └── button[[@click](https://github.com/click)="toggle()"][aria-label="Minimize"] (minimize icon)
└── button[x-show="!expanded"][[@click](https://github.com/click)="toggle()"][aria-label="Show debug info"] (floating circle)
[@endif](https://github.com/endif)
Uses Tailwind responsive visibility classes on <span> elements:
block sm:hidden → XShidden sm:block md:hidden → SMhidden md:block lg:hidden → MDhidden lg:block xl:hidden → LGhidden xl:block 2xl:hidden → XLhidden 2xl:block → 2XLdebug_breakpoints_expanded'true' or 'false' (strings)$expanded prop after first interaction{{-- Default (local only, starts minimized) --}}
<x-bt-debug-breakpoints />
{{-- Start expanded --}}
<x-bt-debug-breakpoints :expanded="true" />
{{-- Show in staging --}}
<x-bt-debug-breakpoints env="staging" />
style="display: none" + x-show="true" ensures Alpine controls visibilityx-init="$watch('width', value => value)" is a no-op watcher (kept for potential future use)z-[100] ensures it floats above most app contentbeartropy-ui::ui.minimize, beartropy-ui::ui.show_debug_infoHow can I help you explore Laravel packages today?