COMPONENT / 空态 / V0.9.0
Void / 空态卡片
插画式空状态配行动按钮;点击后逐条长出第一批条目。
可调字段
| 键 | 名称 | 类型 | 范围 |
|---|---|---|---|
accent | 强调色 | color | — |
radius | 圆角 / px | number | 0 – 40 |
duration | 过渡时长 / ms | number | 100 – 30000 |
title | 标题 | text | — |
subtitle | 说明 / 展开内容 | textarea | — |
label | 按钮或内容文字 | text | — |
items | 内容列表(每行一项) | list | — |
默认参数
{
"accent": "#a8b3c8",
"radius": 18,
"duration": 360,
"title": "Nothing here, yet.",
"subtitle": "空状态不一定是死胡同,也可以是起点。",
"label": "创建第一个条目",
"items": [
"建立索引",
"写入第一段",
"发布初版"
]
}运行依赖
react@18.3.1react-dom@18.3.1
许可
FORMA原创组件,可用于个人及商业项目;运行库遵循MIT许可。
查看实时预览 ↗返回组件中心