组件目录

Panel

有独立标题和操作区的内容面板。

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

参数类型默认值说明
titlestring—面板标题。
actionsReactNode—标题行的操作区。
childrenReactNode必填面板正文。