React · Vue
示例
panel
inset
plain
用法
import { Surface } from '@momoyeyu/momo-ui';
import '@momoyeyu/momo-ui/styles.css';
<Surface as="section" tone="inset" padding="sm">
音量设置
</Surface>Vue
<script setup>
import { Surface } from '@momoyeyu/momo-ui/vue';
import '@momoyeyu/momo-ui/styles.css';
</script>
<template>
<Surface as="section" tone="inset" padding="sm">
音量设置
</Surface>
</template> API
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
as | LayoutTag | div | 使用原生标签保留页面语义。 |
tone | panel | inset | plain | panel | 底色与描边方案。 |
padding | Spacing | md | 容器内边距。 |
继承根元素的 HTML 属性。