octoper/statamic-blade-components

There is no license information available for the latest version (2.0.0) of this package.

Use Blade components inside Statamic's Antler template engine

Fund package maintenance!
octoper

Installs: 15 003

Dependents: 0

Suggesters: 0

Security: 0

Stars: 10

Watchers: 4

Forks: 10

Open Issues: 1

Type:statamic-addon

2.0.0 2022-05-03 07:44 UTC

This package is auto-updated.

Last update: 2024-04-04 09:27:20 UTC


README

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.