Laravel Blade Components

Addon by Vaggelis Yfantis

Laravel Blade Components Main Screenshot

A simple integration for Laravel Blade components in Statamic.

Installation

You can install the package via composer:

composer require octoper/statamic-blade-components

General documentation

Laravel Blade Components

How to be used with the Antlers template engine

{{ component:hello }}

Passing Initial Parameters

You can pass data into a component by passing additional parameters

{{ component:avatar username="johndoe" }}

Passing Slots

You can pass additional content to your component via "slots" too.

{{ component:label for="email" }}
    Email
{{ /component:label }}

or even named slots

{{ component:label for="email" }}
    {{ component:slot name="title" }}
        Email
    {{ /component:slot}}
{{ /component:label }}

Testing

composer test

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits