# Spinner スピナー
軽量な回転式の読み込みアイコンです。size は三段階のプリセットまたは数値でカスタマイズでき、color を渡さない場合は currentColor を引き継ぎます。
スピナー
<template>
<div class="demo-col">
<div class="demo-row" style="gap: 48px; flex-wrap: wrap">
<div class="demo-col" style="align-items: center; gap: 8px">
<LhSpinner size="small" />
<span class="demo-note">small</span>
</div>
<div class="demo-col" style="align-items: center; gap: 8px">
<LhSpinner />
<span class="demo-note">default</span>
</div>
<div class="demo-col" style="align-items: center; gap: 8px">
<LhSpinner size="large" />
<span class="demo-note">large</span>
</div>
<div class="demo-col" style="align-items: center; gap: 8px">
<LhSpinner :size="56" color="var(--lh-primary-color)" />
<span class="demo-note">カスタム size=56 + color</span>
</div>
</div>
</div>
</template>
# Props
| プロパティ | 説明 | 型 | デフォルト値 |
|---|---|---|---|
| size | サイズ | 'small' \| 'default' \| 'large' \| number | 'default' |
| color | 回転の色(CSS color 値。渡さない場合は currentColor を引き継ぐ) | string | — |
| sx | sx によるレイアウト省略記法 | — | — |
Copyright © 2024-2026 FengMo WenXue