isaacdagel/blade-bootstrap-icons
最新稳定版本:v1.3.0
Composer 安装命令:
composer require isaacdagel/blade-bootstrap-icons
包简介
A package to easily integrate Bootstrap SVG icons into your Laravel project.
README 文档
README
A package to easily integrate Bootstrap SVG icons into your Laravel project.
Requirements
This package is designed to work with Laravel 7.0 or higher.
Installation
The package can be installed via Composer:
composer require isaacdagel/blade-bootstrap-icons
Usage
For a list of all available icons and their names, refer to this page.
Insert an icon anywhere into a blade template by calling the appropriate component. The component name format is 'x-boostrap-icon-[hyphenated icon name]'. For example:
<x-bootstrap-icon-chevron-left/>
You can specify custom classes on top of the default 'bi' and 'bi-[hyphenated icon name]' classes:
<x-bootstrap-icon-chevron-left class="custom-class"/>
You can add inline styles:
<x-bootstrap-icon-chevron-left style="color: red"/>
You can specify the height and width (the default for both is 1em):
<x-bootstrap-icon-chevron-left width="1.5em" height="1.5em"/>
You can set the viewBox property (the default is '0 0 16 16'):
<x-bootstrap-icon-chevron-left viewBox="0 0 20 20"/>
You can also set the fill property (the default is 'currentColor'):
<x-bootstrap-icon-chevron-left fill="green"/>
Changelog
Please see CHANGELOG for more information what has changed recently.
Credits
Bootstrap Icons are created and maintained by the Bootstrap team.
License
This package is released under the MIT License. Please see License File for more information.
统计信息
- 总下载量: 90
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-13