Icono
Un icono inserta un pequeño glifo en el texto, con una palabra opcional al lado. Los mismos nombres funcionan en cualquier lugar que admita un icon, como tarjetas, carpetas de la barra lateral y pestañas.
Ejemplo
Launch Guides Authentication
<Icon name="rocket">Launch</Icon> <Icon name="book-open">Guides</Icon> <Icon name="key">Authentication</Icon>Propiedades
namestringobligatorioEl glifo, elegido entre los nombres de abajo. El formato es flexible: no distingue entre mayúsculas y minúsculas, los espacios y guiones bajos cuentan como guiones, y también puedes omitir los guiones; así que Book Open, book_open y bookopen muestran el mismo book-open. Si el nombre no se reconoce, no se muestra nada en lugar de un glifo roto.
childrentextUna o dos palabras que aparecen junto al glifo. Deja las etiquetas vacías para mostrar solo el glifo.
Todos los nombres
activity alert-circle alert-triangle archive arrow-right arrow-up-right award bar-chart battery bell-off bell-ring bell blocks bolt book-marked book-open book bookmark box boxes braces briefcase bug building-2 calendar-days calendar camera check-check check-circle check chevron-down chevron-right clipboard clock cloud code-2 code coffee columns command compass copy cpu credit-card database dollar-sign download edit external-link eye-off eye file-code file-json file-text file filter-x filter fingerprint flag flame folder-open folder-tree folder gauge gift git-branch git-commit git-pull-request github globe graduation-cap grid-3x3 grid hammer hard-drive hash heart help-circle history home hourglass image inbox info key-round key layers layout lightbulb link list loader-circle lock-keyhole lock log-in log-out mail map-pin map maximize megaphone menu message-circle mic minimize minus moon more-horizontal navigation newspaper package-check package panel-left paperclip pause pencil percent phone pin play plug plus power qr-code quote radar refresh repeat rocket rows rss save scan scissors scroll search send server settings-2 settings share shield-alert shield-check shield shopping-cart skip-forward sliders-vertical sliders smile sparkles star store sun table tag target terminal thumbs-down thumbs-up timer toggle trash trending-up truck type unlock upload user-check user-plus user-x user users video volume-2 wallet wand webhook wifi workflow wrench x-circle zap-off zap
Otros nombres válidos
Las palabras habituales corresponden al glifo más parecido, así que rara vez necesitas buscar uno. Algunos ejemplos:
| Lo que escribes | Se muestra |
|---|---|
gear, cog, config | settings |
docs, guide | book |
reference, tutorial | book-open |
api | code |
auth, authentication | key |
security | shield |
db, data | database |
email, envelope | mail |
chat, comment, message | message-circle |
warning, alert | alert-triangle |
error | x-circle |
tip, idea | lightbulb |
launch, quickstart | rocket |
delete, remove | trash |
pricing, money | dollar-sign |
payment | credit-card |
repo, git, branch | git-branch |
analytics | activity |
world, web | globe |