# LinkButton

按钮样式的链接——提供 primary、secondary 和 minimal 三种变体，各有三种尺寸。

**Install:** `nimbus-docs add link-button`  
**Source:** `src/components/ui/link-button/`  
**Canonical:** https://nimbus-docs.cn/components/link-button/

## Agent payload (JSON)

```json
{
  "slug": "link-button",
  "name": "LinkButton",
  "description": "Anchor styled as a button. Shares styling with Button via button/variants.",
  "tagline": "按钮样式的链接——提供 primary、secondary 和 minimal 三种变体，各有三种尺寸。",
  "install": "nimbus-docs add link-button",
  "sourcePath": "src/components/ui/link-button/",
  "canonicalUrl": "https://nimbus-docs.cn/components/link-button/",
  "props": [
    {
      "name": "href",
      "type": "string",
      "required": true,
      "description": "目标 URL。"
    },
    {
      "name": "variant",
      "type": "\"primary\" | \"secondary\" | \"minimal\"",
      "defaultValue": "\"primary\"",
      "required": false,
      "description": "视觉样式。"
    },
    {
      "name": "size",
      "type": "\"sm\" | \"md\" | \"lg\"",
      "defaultValue": "\"md\"",
      "required": false,
      "description": "相对缩放比例；影响内边距和字体大小。"
    },
    {
      "name": "shape",
      "type": "\"base\" | \"square\" | \"circle\"",
      "defaultValue": "\"base\"",
      "required": false,
      "description": "对于纯图标链接，使用 \"square\" 或 \"circle\"（需传入 aria-label）。"
    },
    {
      "name": "icon",
      "type": "boolean",
      "defaultValue": "false",
      "required": false,
      "description": "渲染一个尾部箭头图标，悬停时会有微动效果。"
    }
  ],
  "registryDependencies": [
    "button",
    "cn"
  ],
  "dependencies": []
}
```
