bnomei/kirby-blueprints

View on GitHub
classes/Blueprints/Attributes/Icon.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Bnomei\Blueprints\Attributes;

use Attribute;

#[Attribute(Attribute::TARGET_PROPERTY)]
class Icon extends GenericAttribute
{
    /**
     * Optional icon that will be shown at the end of the field
     *
     * @param  string|Icon  $icon
     */
    public function __construct(
        public mixed $icon
    ) {}
}