This repository contains examples of blade components and how to use them in your Laravel project.
Share your blade components with the community by creating a pull request.
The accordion component is a simple component that allows you to create an accordion with a title and content.
<x-accordion title="Accordion Title" id="accordion-1">
<p>Accordion Content</p>
</x-accordion>
The alert component is a simple component that allows you to create an alert with a title and content.
@error('name')
<x-alert.error>{{ $message }}</x-alert.error>
@enderror
The button component is a simple component that allows you to create a button with a title and content.
<x-button type="submit" primary class="mt-4">
{{ __('Register') }}
</x-button>
<x-button-variant type="submit" variant="primary" class="mt-4">
{{ __('Register') }}
</x-button-variant>
<x-button-custom color="blue" size="md">
Button
</x-button-custom>
<x-button-custom color="red" size="sm">
Button
</x-button-custom>
<x-button-custom color="green" size="lg">
Button
</x-button-custom>
The card component is a simple component that allows you to create a card with a title and content.
<x-card title="Card Title" id="card-1">
<p>Card Content</p>
</x-card>
<x-auth-card title="Card Title" id="card-1">
<p>Card Content</p>
</x-auth-card>