Icon
cf-icon
One feature of CF icons is when setting the name of the icon to a material icon or font awesome name it will render automatically without specifying the type. Another feature is the icon's toggle state, so when you click on an icon you can specify to what icon and value to change to.
Basic Usage
Toggle Icon
app.html
app.ts
Properties and Styling
app.html
app.ts
Input Properties
Attr
Type
Details
display
boolean
If true, the icon will be displayed else the icon will be hidden. By default it's value is true
disable
boolean
If true the icon with be disabled. By default it's value is false
iconName
string
To specify the name of the material or font awesome icon
size
string
Size of the icon in px, % depending on what the user passes
value
any
Value emitted on click
toggleIcon
any
Object with 3 attributes : name, size, and value. It is activated when the icon is clicked
Last updated