octoper/statamic-blade-components

Use Blade components inside Statamic's Antler template engine
15,892 10
Install
composer require octoper/statamic-blade-components
Latest Version:2.0.0
PHP:^8.0
Last Updated:Mar 4, 2024
Links: GitHub  ·  Packagist
Maintainer: octoper

Statamic Blade Components

Looking for maintainers: As I'm not using Statamic these days and I don't have a the time to maintain the package I'm looking for anyone who want to take the ownerhip of it! You can reach out via email me@octoper.me

Statami v3 Packagist Tests StyleCI

A Laravel Blade Components integration for Statamics Antlers template engine.

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 me@octoper.me instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

spatie/statamic-responsive-images

Responsive Images for Statamic

272,244 115
marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

151,012 23
edalzell/forma

Give control panel access to your addon's config

81,557 10
ryanmitchell/statamic-translation-manager

Manage Laravel language files from the Statamic CP

80,464 9
octoper/statamic-inline-assets

Inline CSS or JS file for Statamic 3

69,188 6