跳到內容
調色盤星雲光譜
選擇版面配色

即時套用,保留目前的亮暗模式。

RadioGroup (am-radio-group)

RadioGroup<fieldset><legend> 與原生 <input type="radio"> 建立單選群組,支援方向、說明、錯誤、預設值與停用選項。

<RadioGroup
name="plan"
legend="Choose a plan"
defaultValue="pro"
options={[
{ value: "starter", label: "Starter", description: "For small experiments." },
{ value: "pro", label: "Pro", description: "For production work." },
]}
/>

詳見 playground /playground/kit/ 範例。