View Source BootstrapIconComponents (bootstrap_icon_components v1.10.2)
Creates function components for Bootstrap icons.
usage
Usage
defmodule MyApp.Icons do
use Phoenix.Component
use BootstrapIconComponents, include: ["1_circle", "cpu"]
end
Then call the components in your HEEX templates:
<.MyApp.Icons.bs_1_circle class="w-4" />
options
Options
:include
(list ofString.t/0
) - Required. List of icon names to include.:prefix
(String.t/0
) - Prefix for icon function names. The default value is"bs"
.