Octri

Icône

Une icône ajoute un petit glyphe à votre texte, avec éventuellement un mot à côté. Les mêmes noms fonctionnent partout où un icon est accepté, notamment dans les cartes, les dossiers de la barre latérale et les onglets.

Exemple

Lancement Guides Authentification

mdx
<Icon name="rocket">Launch</Icon> <Icon name="book-open">Guides</Icon> <Icon name="key">Authentication</Icon>

Props

namestringobligatoire

Le glyphe, choisi parmi les noms ci-dessous. La syntaxe est souple : la casse n'a pas d'importance, les espaces et les traits de soulignement sont équivalents à des traits d'union, et ces derniers sont facultatifs. Ainsi, Book Open, book_open et bookopen affichent tous book-open. Un nom inconnu n'affiche rien, plutôt qu'un glyphe cassé.

childrentext

Un ou deux mots affichés à côté du glyphe. Laissez les balises vides pour afficher uniquement le glyphe.

Tous les noms

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

Autres noms acceptés

Les mots courants correspondent au glyphe le plus proche, vous avez donc rarement besoin d'en rechercher un. En voici quelques-uns :

Vous écrivezRésultat
gear, cog, configsettings
docs, guidebook
reference, tutorialbook-open
apicode
auth, authenticationkey
securityshield
db, datadatabase
email, envelopemail
chat, comment, messagemessage-circle
warning, alertalert-triangle
errorx-circle
tip, idealightbulb
launch, quickstartrocket
delete, removetrash
pricing, moneydollar-sign
paymentcredit-card
repo, git, branchgit-branch
analyticsactivity
world, webglobe
  • Carte : l'emplacement le plus courant pour une icône.
  • Badge : un mot en couleur à la place d'un glyphe.