COMPONENT / 按钮 / V0.9.0
State / 状态按钮
点击后进入处理中,完成后打勾,随后自动复位。
可调字段
| 键 | 名称 | 类型 | 范围 |
|---|---|---|---|
accent | 强调色 | color | — |
radius | 圆角 / px | number | 0 – 40 |
duration | 过渡时长 / ms | number | 100 – 30000 |
title | 标题 | text | — |
subtitle | 说明 / 展开内容 | textarea | — |
label | 按钮或内容文字 | text | — |
默认参数
{
"accent": "#b8e8b0",
"radius": 18,
"duration": 1400,
"title": "Buttons that report back.",
"subtitle": "点击后进入处理,完成打勾,随后复位。",
"label": "提交"
}运行依赖
react@18.3.1react-dom@18.3.1
许可
FORMA原创组件,可用于个人及商业项目;运行库遵循MIT许可。
查看实时预览 ↗返回组件中心