Skip to content

RicLeP/laravel-storyblok-css

Repository files navigation

Laravel Storyblok - CSS helper plugin

Latest Version on Packagist Total Downloads GitHub Actions

This is a small package that adds a few additional helper methods to Blocks for generating dynamic CSS class names. You can create class names for Blocks 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;
}

Read the docs for more.

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.

About

No description, website, or topics provided.

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Languages