Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Ui Laravel Package

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.

View on GitHub
Deep Wiki
Context7

x-bt-debug-breakpoints — AI Reference

Component Tag

<x-bt-debug-breakpoints />
<x-bt-debug-breakpoints env="staging" :expanded="true" />

Architecture

  • DebugBreakpoints extends BeartropyComponent (inherits HasPresets, HasErrorBag)
  • Renders debug-breakpoints.blade.php — inline Alpine.js, no separate JS module
  • No preset file — styling is hardcoded (red color scheme, dev-only tool)
  • Environment-gated: wrapped in [@if](https://github.com/if) (app()->environment($env))
  • Renders zero HTML in non-matching environments

Props (Constructor)

Prop Type Default Blade Attribute
expanded bool false :expanded="true"
env string 'local' env="staging"

Alpine.js State

{
    expanded: boolean,  // From localStorage or $expanded prop
    width: number,      // window.innerWidth, updated on resize

    toggle() {
        // Flip expanded, persist to localStorage
    }
}

Template Structure

[@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)

Breakpoint Detection

Uses Tailwind responsive visibility classes on <span> elements:

  • block sm:hidden → XS
  • hidden sm:block md:hidden → SM
  • hidden md:block lg:hidden → MD
  • hidden lg:block xl:hidden → LG
  • hidden xl:block 2xl:hidden → XL
  • hidden 2xl:block → 2XL

localStorage

  • Key: debug_breakpoints_expanded
  • Values: 'true' or 'false' (strings)
  • Read on init, written on every toggle
  • Overrides the $expanded prop after first interaction

Common Patterns

{{-- 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" />

Key Notes

  • FOUC prevention: style="display: none" + x-show="true" ensures Alpine controls visibility
  • Zero output in non-matching environments — safe to include in layouts unconditionally
  • x-init="$watch('width', value => value)" is a no-op watcher (kept for potential future use)
  • Red color scheme is intentional — stands out as a dev tool, not mistaken for UI
  • z-[100] ensures it floats above most app content
  • Lang keys: beartropy-ui::ui.minimize, beartropy-ui::ui.show_debug_info
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
boundwize/jsonrecast
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata