Back to skills
SKILL.md
Blade Components And Layouts
ASecurityCompose UIs with Blade components, slots, and layouts; keep templates pure and testable
- 147 stars
- 0 votes
- 0 copies
- 2 views
- Added June 6, 2026
Security analysis
100/100npx -y skills add jpcaparas/superpowers-laravel --skill blade-components-and-layouts --agent claude-codeAre you the author of Blade Components And Layouts?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/jpcaparas-blade-components-and-layouts)---
name: laravel:blade-components-and-layouts
description: Compose UIs with Blade components, slots, and layouts; keep templates pure and testable
---
# Blade Components and Layouts
Encapsulate markup and behavior with components; prefer slots over includes.
## Commands
```
sail artisan make:component Alert # or: php artisan make:component Alert
// Use component
<x-alert type="warning" :message="$msg" class="mb-4" />
// Layouts + stacks
@extends('layouts.app')
@push('scripts')
<script>/* page script */</script>
@endpush
```
## Patterns
- Keep components dumb: pass data in, emit markup out
- Use `merge()` to honor passed classes/attributes in components
- Prefer named slots for readability
- Extract small, reusable atoms rather than giant organisms
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.