Yii / Bootstrap / Icons

Yii / Bootstrap / Icons

Bootstrap Icons asset bundle

Provides the asset bundle to use Bootstrap Icons in your project. All valid icons can be found on the Bootstrap Icons page.

Installation

composer require yiirocks/yii-bootstrap-icons

Usage

Register the asset bundle in your application configuration:

$assetManager->register(
    \YiiRocks\Yii\Bootstrap\Icons\Assets\BootstrapIconsAsset::class,
);

Then use Bootstrap Icons in your views:

<i class="bi-alarm"></i>

Or via HTML helper:

echo Html::i()->class('bi-alarm');

Support

Create an issue →