riclep / laravel-storyblok-css
A bunch of CSS helpers and features for Laravel Storyblok
Requires
- php: ^8.0
- mundschenk-at/php-typography: ^6.6
- riclep/laravel-storyblok: ^2.14
Requires (Dev)
- orchestra/testbench: ^7.0
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-12-15 01:28:51 UTC
README
This is a small package that adds a few additional helper methods to Block
s for generating dynamic CSS class names. You can create class names for Block
s based on their component name in Storyblok, where they’re nested in the tree etc.
This package is a module for Laravel Storyblok
Installation
You can install the package via composer:
composer require riclep/laravel-storyblok-css
Usage
It’s really simple to use, just add the trait to any blocks you want to create CSS classes for or alternatively the App\Storyblok\Block
class.
namespace App\Storyblok; use Riclep\Storyblok\Block as BaseBlock; use Riclep\StoryblokCss\Traits\CssClasses; class Block extends BaseBlock { use CssClasses; }
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email ric@sirric.co.uk instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.