Skip to content
Back to skills

Blade Components And Layouts

ASecurity

Compose UIs with Blade components, slots, and layouts; keep templates pure and testable

  • 147 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 6, 2026
developmentphp

Security analysis

A100/100

Scanned June 6, 2026

npx -y skills add jpcaparas/superpowers-laravel --skill blade-components-and-layouts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Blade Components And Layouts?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Blade Components And Layouts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jpcaparas-blade-components-and-layouts/badge)](https://www.skillsdirectory.com/skills/jpcaparas-blade-components-and-layouts)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.