COMPONENT / 标记 / V0.9.0
Pin / 立体图钉
渐变圆钉悬停时向后立起,投影同步缩小,适合作品锚点。
可调字段
| 键 | 名称 | 类型 | 范围 |
|---|---|---|---|
accent | 强调色 | color | — |
radius | 圆角 / px | number | 0 – 40 |
duration | 过渡时长 / ms | number | 100 – 30000 |
title | 标题 | text | — |
subtitle | 说明 / 展开内容 | textarea | — |
label | 按钮或内容文字 | text | — |
默认参数
{
"accent": "#f5c89b",
"radius": 18,
"duration": 360,
"title": "Pin it down.",
"subtitle": "悬停图钉,它会立起来。",
"label": "◈"
}运行依赖
react@18.3.1react-dom@18.3.1
许可
FORMA原创组件,可用于个人及商业项目;运行库遵循MIT许可。
查看实时预览 ↗返回组件中心