React
示例
只读
当前显示名称:momo
用法
import { Field } from '@momoyeyu/momo-ui';
import '@momoyeyu/momo-ui/styles.css';
<Field label="显示名称" htmlFor="display-name">
<input id="display-name" name="displayName" />
</Field>API
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
label | string | 必填 | 可见标签。 |
htmlFor | string | — | 关联输入控件的 id。 |
aside | ReactNode | — | 标签旁的辅助内容。 |
children | ReactNode | 必填 | 右侧控件。 |
一行内放置多个操作时,分别为操作提供可访问名称。