アイコン
使用例
<Icon icon="material-two-tone-storefront"/>
テキスト内でのアイコンの使用
テキスト内に アイコンが挿入されています。
テキスト内に <Icon icon="material-two-tone-storefront"/> アイコンが挿入されています。
アイコンの色を設定する
<Icon icon="material-two-tone-storefront" color="blue"/>
アイコンのサイズを設定する
<Icon icon="material-two-tone-storefront" size={25}/>
コンポーネント内でのアイコンの使用
"icon="material-two-tone-storefront"
を追加することでこれを実現しています。<Card title="アイコン付きカード" icon="material-two-tone-storefront" >
これはカードの内容です。
</Card>
パラメータの説明
Icon
icon
string
必須
[iconSetName]-[IconSetVariant]-[IconName] - url
の形式に従う必要があります。URL は http://
または https://
で始まる必要があります。color
string
可選
size
number
可選
更新日時 2024-06-27 10:01:18