Overview
Discover the UI components available in Shopper admin panel
Shopper provides a set of Blade components that you can use when extending the admin panel. These components are designed to maintain visual consistency across your custom features.
Available Components
The component library includes:
Usage
All Shopper components are prefixed with x-shopper:: and can be used in any Blade view within the admin panel context:
<x-shopper::card title="My Card Title">
<p>Card content goes here</p>
</x-shopper::card>Styling
Components use Tailwind CSS and support both light and dark modes out of the box. They follow the Shopper design system with consistent spacing, colors, and typography.
Customization
You can customize components by:
- Passing attributes: Most components accept standard HTML attributes via
$attributes - Using slots: Many components support named slots for flexible content placement
- Overriding views: Copy a component view to
resources/views/vendor/shopper/components/in your application. Laravel loads your copy instead of the package view
mkdir -p resources/views/vendor/shopper/components
cp vendor/shopper/framework/resources/views/components/card.blade.php resources/views/vendor/shopper/components/card.blade.phpWhen overriding components, be careful to maintain the expected structure to avoid breaking the admin panel UI.
Last updated on
Edit on GitHub