Icon
アイコンは小さなグリフをテキスト内に表示し、任意で横に単語を添えます。カード、サイドバーのフォルダー、タブなど、iconを指定できる場所であれば、同じ名前を使用できます。
例
Launch Guides Authentication
<Icon name="rocket">Launch</Icon> <Icon name="book-open">Guides</Icon> <Icon name="key">Authentication</Icon>プロパティ
namestring必須下記の名前からグリフを指定します。名前の表記には柔軟性があります。大文字と小文字は区別されず、スペースとアンダースコアはハイフンとして扱われ、ハイフン自体も省略できます。そのため、Book Open、book_open、bookopenはいずれもbook-openを表示します。不明な名前の場合は、壊れたグリフではなく何も表示されません。
childrentextグリフの横に表示する単語を1つか2つ指定します。グリフだけを表示する場合は、タグを空のままにします。
すべての名前
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
使用できるその他の名前
一般的な単語は最も近いグリフに対応するため、名前を調べる必要はほとんどありません。たとえば、次のようなものがあります:
| 入力 | 表示 |
|---|---|
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 |