2021-12-20 15:06:23 +00:00
< div class = "card" >
< h4 > Icons< / h4 >
< h5 > Download< / h5 >
< app-code lang = "markup" ngPreserveWhitespaces ngNonBindable >
npm install primeicons --save
< / app-code >
< h5 > Getting Started< / h5 >
< p > PrimeIcons use the < strong > pi pi-{ icon} < / strong > syntax such as < strong > pi pi-check< / strong > .
A standalone icon can be displayed using an element such as < i > i< / i > or < i > span< / i > < / p >
< app-code lang = "markup" ngPreserveWhitespaces ngNonBindable >
< i class="pi pi-check"> < /i>
< i class="pi pi-times"> < /i>
< / app-code >
< i class = "pi pi-check" style = "margin-right: .5rem" > < / i >
< i class = "pi pi-times" > < / i >
< h5 > Size< / h5 >
< p > Size of the icons can easily be changed using font-size property.< / p >
< app-code lang = "markup" ngPreserveWhitespaces ngNonBindable >
< i class="pi pi-check"> < /i>
< / app-code >
< i class = "pi pi-check" > < / i >
< app-code lang = "markup" ngPreserveWhitespaces ngNonBindable >
< i class="pi pi-check" style="font-size: 2rem"> < /i>
< / app-code >
< i class = "pi pi-check" style = "font-size: 2rem" > < / i >
< h5 > Spinning Animation< / h5 >
< p > Special pi-spin class applies infinite rotate to an icon.< / p >
< app-code lang = "markup" ngPreserveWhitespaces ngNonBindable >
< i class="pi pi-spin pi-spinner" style="font-size: 2rem"> < /i>
< / app-code >
< i class = "pi pi-spin pi-spinner" style = "font-size: 2rem" > < / i >
< h5 > List of Icons< / h5 >
< p > Here is the current list of PrimeIcons, more icons will be added periodically. You may also < a href = "https://github.com/primefaces/primeicons/issues" > request new icons< / a > at the issue tracker.< / p >
< div >
< input class = "icon-filter" ( input ) = " onFilter ( $ event ) " pInputText placeholder = "Search an icon" >
< / div >
< div class = "grid icons-list" >
2021-12-21 07:14:39 +00:00
< div class = "col-12 md:col-2" * ngFor = "let icon of filteredIcons" >
2021-12-20 15:06:23 +00:00
< i class = "pi pi-{{icon.properties.name}}" > < / i >
< div > pi-{{icon.properties.name}}< / div >
< / div >
< / div >
< / div >