# UGFieldset 字段分组

> 适配器：Vue；状态：available；slug：`fieldset`。

使用 fieldset 与 legend 对相关表单控件建立语义分组。

## 适用场景

- 用 legend 对一组相关表单控件建立语义分组。

## 不适用场景

- 单个字段使用组件自身 label；纯视觉卡片使用 Card。

## 公开入口

- 包入口：`@ug666/ui-vue/components`
- 公开成员：`UGFieldset`、`UGFieldsetLegend`、`UGFieldsetDescription`
- 交互文档：[https://ui.ug666.top/vue/components/fieldset](https://ui.ug666.top/vue/components/fieldset)

```vue
import { UGFieldset, UGFieldsetLegend, UGFieldsetDescription } from '@ug666/ui-vue/components'
```

## 使用规则

- 标题使用 UGFieldsetLegend；补充说明使用 UGFieldsetDescription，不用普通 div 模拟 legend。
- 双向值优先使用组件声明的 v-model 参数。
- 事件、插槽和 expose 以 Vue 类型为准，不照搬 React 回调名。
- 只通过公开 Props、事件、插槽、class/className 和语义 Token 扩展。

## 相关候选

- [file-input](https://ui.ug666.top/ai/vue/components/file-input.md)
- [form](https://ui.ug666.top/ai/vue/components/form.md)
- [card](https://ui.ug666.top/ai/vue/components/card.md)

## 生成前检查

- 当前适配器是否真实提供该组件。
- 导入路径、组件名和 API 是否存在于当前版本类型声明。
- 是否覆盖长文本、窄容器、键盘、焦点、disabled、loading 和错误状态。
