1
- # statamic-blade-components
1
+ # Statamic Blade Components
2
2
3
3
![ Statami v3] ( https://img.shields.io/badge/Statamic-3.0+-FF269E )
4
4
![ Packagist] ( https://img.shields.io/packagist/v/octoper/statamic-blade-components )
5
5
![ Test Suite] ( https://github.com/octoper/statamic-blade-components/workflows/Test%20Suite/badge.svg )
6
6
7
- A Laravel Blade component integration for Statamics Antlers template engine.
7
+ A [ Laravel Blade Components ] ( https://laravel.com/docs/7.x/blade#components ) integration for Statamics Antlers template engine.
8
8
9
- ## Documentation
10
- [ Read] ( ./DOCUMENTATION.md ) this addon's documentation.
9
+ ## Installation
10
+ Pull in your package with composer
11
+ ``` bash
12
+ composer require octoper/statamic-blade-components
13
+ ```
11
14
12
- ## Resources
13
- * [ Statamic 3 Docs] ( https://statamic.dev )
14
- * [ Statamic Discord] ( https://statamic.com/discord )
15
+ ## General documentation
16
+ [ Laravel Blade Components] ( https://laravel.com/docs/7.x/blade#components )
17
+
18
+ ## How to be used with the Antlers template engine
19
+ ``` html
20
+ {{ component:hello }}
21
+ ```
22
+
23
+ ### Passing Initial Parameters
24
+ You can pass data into a component by passing additional parameters
25
+
26
+ ``` html
27
+ {{ component:avatar username="johndoe" }}
28
+ ```
29
+
30
+ ### Passing Slots
31
+ You can pass additional content to your component via "slots" too.
32
+
33
+ ``` html
34
+ {{ component:label for="email" }}
35
+ Email
36
+ {{ /component }}
37
+ ```
15
38
16
39
## Security
17
40
@@ -21,3 +44,6 @@ If you discover any security related issues, please email me@octoper.me instead
21
44
22
45
- [ Vaggelis Yfantis] ( https://github.com/octoper )
23
46
- [ All Contributors] ( ../../contributors )
47
+
48
+ # License
49
+ This plugin is published under the MIT license. Feel free to use it and remember to spread love.
0 commit comments