Skip to main content

Module controls

Module controls 

Source
Expand description

Buttons and native selection controls.

Structs§

ButtonProps
Props for the Button component.
CheckboxProps
Props for the Checkbox component.
IconButtonProps
Props for the IconButton component.
RadioProps
Props for the Radio component.

Enums§

ButtonSize
按钮尺寸:XS 26px、SM 30px、MD 34px、LG 40px。
ButtonVariant
按钮样式,对应 styles/components/ui.css 的 .btn-*。

Functions§

Button
通用按钮。
Checkbox
带勾画动画的复选框:对勾 SVG 用 stroke-dashoffset 描边绘制 + scale 弹入。
IconButton
只有图标的方形按钮。label 必填:作为读屏名称,同时显示为悬浮提示; shortcut 会跟在提示文字后面。
Radio
主题化单选框,与 Checkbox 使用相同尺寸、主题色和焦点描边。
button_class
组合按钮类名,供 <a>、label 等需要按钮外观的非按钮元素使用。