Skip to content

MobilePage

具有移动端优化的全页容器组件。

导入

tsx
import { MobilePage } from '@xcloud/ui-mobile'

基础用法

tsx
import { MobilePage } from '@xcloud/ui-mobile'

function Page() {
  return (
    <MobilePage>
      <h1>Page Content</h1>
    </MobilePage>
  )
}

属性

属性类型默认值描述
childrenReactNode必需页面内容
safeAreabooleantrue添加安全区域内边距
scrollablebooleantrue启用滚动

基于 MIT 许可发布