Expand description
Buttons and native selection controls.
Structs§
- Button
Props - Props for the
Buttoncomponent. - Checkbox
Props - Props for the
Checkboxcomponent. - Icon
Button Props - Props for the
IconButtoncomponent. - Radio
Props - Props for the
Radiocomponent.
Enums§
- Button
Size - 按钮尺寸:XS 26px、SM 30px、MD 34px、LG 40px。
- Button
Variant - 按钮样式,对应 styles/components/ui.css 的
.btn-*。
Functions§
- Button
- 通用按钮。
- Checkbox
- 带勾画动画的复选框:对勾 SVG 用 stroke-dashoffset 描边绘制 + scale 弹入。
- Icon
Button - 只有图标的方形按钮。
label必填:作为读屏名称,同时显示为悬浮提示;shortcut会跟在提示文字后面。 - Radio
- 主题化单选框,与 Checkbox 使用相同尺寸、主题色和焦点描边。
- button_
class - 组合按钮类名,供
<a>、label等需要按钮外观的非按钮元素使用。