React
示例
对话设置
这里显示面板正文。
无标题的面板。
用法
import { Panel, Button } from '@momoyeyu/momo-ui';
import '@momoyeyu/momo-ui/styles.css';
<Panel title="对话" actions={<Button size="sm">管理</Button>}>
<p>面板正文</p>
</Panel>API
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
title | string | — | 面板标题。 |
actions | ReactNode | — | 标题行的操作区。 |
children | ReactNode | 必填 | 面板正文。 |