> This page is for version v1 (default).
> For other versions, use one of these documentation indexes:
> - v1 (default): https://docs.butterix.com/llms.txt
> - v0: https://docs.butterix.com/v0/llms.txt

> For the MDX source of any page, append .mdx to the page URL.
> For a complete documentation index, see https://docs.butterix.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.butterix.com/_mcp/server.
> If something on this page is wrong or missing, POST JSON {"page": "<page URL>", "message": "<what is wrong>"} to https://docs.butterix.com/_biti/feedback/agent.

# 组件清单

`GET /components`

全部 MDX 组件及其属性，与 `biti components --json` 的输出相同。可视化编辑器用它生成属性面板。

Base URL: https://api.butterix.com/v1

Authentication: bearer token in Authorization header or API key in cookie `biti_session`

## Example request

```bash
curl https://api.butterix.com/v1/components \
     -H "Authorization: Bearer <token>"
```

## Responses

### 200

组件清单

Content type: `application/json`

| Field | Type | Required | Description |
|---|---|---|---|
| `[].name` | string | no |  |
| `[].aliases` | list of strings | no |  |
| `[].category` | string | no |  |
| `[].description` | string | no |  |
| `[].children` | enum | no | Allowed: `none`, `inline`, `block`. |
| `[].parent` | string | no |  |
| `[].props` | list of objects | no |  |
| `[].props[].name` | string | no |  |
| `[].props[].type` | string | no |  |
| `[].props[].required` | boolean | no |  |
| `[].props[].options` | list of strings | no |  |
| `[].props[].default` | any | no |  |
| `[].props[].description` | string | no |  |

### Example response (200)

```json
[
  {
    "name": "Callout",
    "aliases": [
      "Note",
      "Info",
      "Warning"
    ],
    "category": "callout",
    "description": "string",
    "children": "none",
    "parent": "string",
    "props": [
      {
        "name": "string",
        "type": "string",
        "required": true,
        "options": [
          "string"
        ],
        "default": "string",
        "description": "string"
      }
    ]
  }
]
```
