# 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 风默文学 | 宁ICP备2024006574号 | 公安备案徽标苏公网安备32040002010537