Skip to content

Button 按钮

用于触发操作的基础交互组件,支持多种变体、尺寸和状态。

基础用法

变体

提供四种外观变体:primarysecondaryoutlineghost

尺寸

提供三种尺寸:smmd(默认)、lg

禁用状态

加载状态

API

Props

属性类型默认值说明
variant'primary' | 'secondary' | 'outline' | 'ghost''primary'按钮外观变体
size'sm' | 'md' | 'lg''md'按钮尺寸
loadingbooleanfalse是否展示加载状态
disabledbooleanfalse是否禁用

AUI Vue Components — Built with Vue 3 & VitePress