+
+## 块级按钮
+
+
+
+## API
+
+| 属性 | 类型 | 默认值 | 说明 |
+| :------- | :------------------------------- | :-------- | :--------------------------------------------------------------- |
+| theme | string | 'default' | 按钮主题,可选值为 `default` `primary` `danger` |
+| size | string | 'md' | 按钮大小,可选值为 `md` `lg` `sm` `xs` |
+| shape | string | 'radius' | 按钮形状,可选值为 `rect` `radius` `round` `circle` |
+| block | boolean | false | 是否块级元素 |
+| ghost | boolean | false | 是否幽灵按钮 |
+| plain | boolean | false | 是否幽灵按钮(限小程序) |
+| shadow | boolean | false | 是否带阴影 |
+| disabled | boolean | false | 是否禁用 |
+| loading | boolean | false | 是否加载中状态 |
+| icon | ReactNode | - | 设置图标 |
+| onClick | MouseEventHandler<Element> | - | 点击后触发的回调函数 |
+| htmlType | string | 'button' | 设置原生 button 的 `type` 值,可选值为 `button` `submit` `reset` |
+
+[更多属性](https://developers.weixin.qq.com/miniprogram/dev/component/button.html)
diff --git a/packages/zarm/src/button/index.en-US.md b/packages/zarm/src/button/index.en-US.md
index 131f002c8..02c79ceb3 100644
--- a/packages/zarm/src/button/index.en-US.md
+++ b/packages/zarm/src/button/index.en-US.md
@@ -2,9 +2,52 @@
category: Components
title: Button
group:
- title: 操作反馈
+ title: Feedback
---
-## 基本用法
+## demos
-
+
+
+
+
+
+
+## API
+
+| 属性 | 类型 | 默认值 | 说明 |
+| :------- | :------------------------------- | :-------- | :------------------------------------------------------------------------------- |
+| theme | string | 'default' | 按钮主题,可选值为 `default` `primary` `danger` |
+| size | string | 'md' | 按钮大小,可选值为 `md` `lg` `sm` `xs` |
+| shape | string | 'radius' | 按钮形状,可选值为 `rect` `radius` `round` `circle` |
+| block | boolean | false | 是否块级元素 |
+| ghost | boolean | false | 是否幽灵按钮 |
+| shadow | boolean | false | 是否带阴影 |
+| disabled | boolean | false | 是否禁用 |
+| loading | boolean | false | 是否加载中状态 |
+| icon | ReactNode | - | 设置图标 |
+| onClick | MouseEventHandler<Element> | - | 点击后触发的回调函数 |
+| htmlType | string | 'button' | 设置原生 button 的 `type` 值,可选值为 `button` `submit` `reset` |
+| href | string | - | 点击跳转的地址,指定此属性 `button` 的行为和 a 标签一致 |
+| target | string | - | 规定在何处打开链接文档,相当于 a 标签的 `target` 属性,`href` 属性存在时生效 |
+| mimeType | string | - | 链接中指向的文档的 mime 类型,相当于 a 标签的 `type` 属性,`href` 属性存在时生效 |
+
+## CSS 变量
+
+| 属性 | 默认值 | 说明 |
+| :--------------------- | :-------------------------------------- | :------------------- |
+| --height | 'var(--za-height-md)' | 高度 |
+| --border-radius | 0 | 圆角大小 |
+| --border-width | '1PX' | 边框粗细 |
+| --padding-horizontal | 'var(--za-padding-h-md)' | 内部横向边距 |
+| --font-size | 'var(--za-font-size-md)' | 字体大小 |
+| --icon-size | '22px' | 图标大小 |
+| --background | '#fff' | 背景色 |
+| --border-color | 'var(--za-theme-default)' | 边框颜色 |
+| --text-color | 'var(--za-color-text)' | 字体颜色 |
+| --loading-color | 'var(--za-theme-primary)' | 加载状态图标颜色 |
+| --active-background | '#e6e6e6' | 激活状态背景色 |
+| --active-border-color | '#e6e6e6' | 激活状态边框色 |
+| --active-text-color | 'var(--za-color-text)' | 激活状态字体颜色 |
+| --active-loading-color | 'var(--za-theme-primary-dark)' | 激活加载状态图标颜色 |
+| --shadow | '0 3px 3px 0 rgba(230, 230, 230, 0.3))' | 阴影样式 |
diff --git a/packages/zarm/src/button/index.zh-CN.$tab-mini.md b/packages/zarm/src/button/index.zh-CN.$tab-mini.md
index be5e794cf..d993ce5b5 100644
--- a/packages/zarm/src/button/index.zh-CN.$tab-mini.md
+++ b/packages/zarm/src/button/index.zh-CN.$tab-mini.md
@@ -2,7 +2,7 @@
category: 组件
title: 小程序
group:
- title: Feedback
+ title: 操作反馈
---
## 基本用法
diff --git a/packages/zarm/src/button/index.zh-CN.md b/packages/zarm/src/button/index.zh-CN.md
index fdf52a55b..f6183606e 100644
--- a/packages/zarm/src/button/index.zh-CN.md
+++ b/packages/zarm/src/button/index.zh-CN.md
@@ -1,10 +1,53 @@
---
category: 组件
-title: Button
+title: 按钮
group:
- title: Feedback
+ title: 操作反馈
---
-## 基本用法
+## 示例
-
+
+
+
+
+
+
+## API
+
+| 属性 | 类型 | 默认值 | 说明 |
+| :------- | :------------------------------- | :-------- | :------------------------------------------------------------------------------- |
+| theme | string | 'default' | 按钮主题,可选值为 `default` `primary` `danger` |
+| size | string | 'md' | 按钮大小,可选值为 `md` `lg` `sm` `xs` |
+| shape | string | 'radius' | 按钮形状,可选值为 `rect` `radius` `round` `circle` |
+| block | boolean | false | 是否块级元素 |
+| ghost | boolean | false | 是否幽灵按钮 |
+| shadow | boolean | false | 是否带阴影 |
+| disabled | boolean | false | 是否禁用 |
+| loading | boolean | false | 是否加载中状态 |
+| icon | ReactNode | - | 设置图标 |
+| onClick | MouseEventHandler<Element> | - | 点击后触发的回调函数 |
+| htmlType | string | 'button' | 设置原生 button 的 `type` 值,可选值为 `button` `submit` `reset` |
+| href | string | - | 点击跳转的地址,指定此属性 `button` 的行为和 a 标签一致 |
+| target | string | - | 规定在何处打开链接文档,相当于 a 标签的 `target` 属性,`href` 属性存在时生效 |
+| mimeType | string | - | 链接中指向的文档的 mime 类型,相当于 a 标签的 `type` 属性,`href` 属性存在时生效 |
+
+## CSS 变量
+
+| 属性 | 默认值 | 说明 |
+| :--------------------- | :-------------------------------------- | :------------------- |
+| --height | 'var(--za-height-md)' | 高度 |
+| --border-radius | 0 | 圆角大小 |
+| --border-width | '1PX' | 边框粗细 |
+| --padding-horizontal | 'var(--za-padding-h-md)' | 内部横向边距 |
+| --font-size | 'var(--za-font-size-md)' | 字体大小 |
+| --icon-size | '22px' | 图标大小 |
+| --background | '#fff' | 背景色 |
+| --border-color | 'var(--za-theme-default)' | 边框颜色 |
+| --text-color | 'var(--za-color-text)' | 字体颜色 |
+| --loading-color | 'var(--za-theme-primary)' | 加载状态图标颜色 |
+| --active-background | '#e6e6e6' | 激活状态背景色 |
+| --active-border-color | '#e6e6e6' | 激活状态边框色 |
+| --active-text-color | 'var(--za-color-text)' | 激活状态字体颜色 |
+| --active-loading-color | 'var(--za-theme-primary-dark)' | 激活加载状态图标颜色 |
+| --shadow | '0 3px 3px 0 rgba(230, 230, 230, 0.3))' | 阴影样式 |
diff --git a/packages/zarm/src/stepper/Stepper.tsx b/packages/zarm/src/stepper/Stepper.tsx
index 8be72f33c..fde243423 100644
--- a/packages/zarm/src/stepper/Stepper.tsx
+++ b/packages/zarm/src/stepper/Stepper.tsx
@@ -1,14 +1,14 @@
-import React from 'react';
import { createBEM } from '@zarm-design/bem';
import { Minus as MinusIcon, Plus as PlusIcon } from '@zarm-design/icons';
-import type { BaseStepperProps } from './interface';
+import React from 'react';
import Button from '../button';
import { ConfigContext } from '../config-provider';
-import CustomInput from '../custom-input';
import type { CustomInputProps } from '../custom-input';
-import Input from '../input';
+import CustomInput from '../custom-input';
import type { InputProps } from '../input';
+import Input from '../input';
import type { HTMLProps } from '../utils/utilityTypes';
+import type { BaseStepperProps } from './interface';
export interface StepperCssVars {
'--height'?: React.CSSProperties['height'];
@@ -16,8 +16,8 @@ export interface StepperCssVars {
'--input-background'?: React.CSSProperties['background'];
'--input-border-width'?: React.CSSProperties['borderWidth'];
'--input-border-color'?: React.CSSProperties['borderColor'];
- '--input-border-radius'?: React.CSSProperties['borderRadius'],
- '--input-text-color'?: React.CSSProperties['color'],
+ '--input-border-radius'?: React.CSSProperties['borderRadius'];
+ '--input-text-color'?: React.CSSProperties['color'];
'--input-font-size'?: React.CSSProperties['fontSize'];
'--input-disabled-text-color'?: React.CSSProperties['color'];
'--input-disabled-opacity'?: React.CSSProperties['opacity'];
@@ -127,14 +127,14 @@ const Stepper = React.forwardRef
+