mylistryx/yii2-bootstrap-icon

Yii2 Bootstrap Icons font and helper

1.0.1 2024-12-12 06:43 UTC

This package is auto-updated.

Last update: 2025-03-12 07:29:03 UTC


README

Installation

The preferred way to install this extension is through composer

Either run: composer require mylistryx/yii2-bootstrap-icon or add "yii2-bootstrap-icon": "~1.0.0" into your composer.json file.

Then register assets in your view file: \yii\bootstrap5\BootstrapIconAsset::register($this)

To use helper just write <?= \yii\bootstrap5\BI:i('icon-name) ?> in your template

Custom usage:

<?= \yii\bootstrap5\BI:i('accordion')->addCssClass('text-danger')->addDataAttribute('error-icon') ?>