Container

Use and Import

import Container from 'nes-design/es/Container';   OR   import { Container } from 'nes-design';
Copy

Case

container

This is container
Title
This is container with a title

Title Center

Title Center
自定义

Round

Round
round Container

Theme

Theme
Theme Container
Theme
Theme Container

Props

Prop / 参数Description / 描述Type / 类型Default / 默认值
themecontainer theme / 容器主题'dark'-
titlecontainer top titleReact.ReactNode-
htmlTitlediv tag html titlestring-
centercontainer title/content centerboolean-
roundcontainer shape / 容器形状boolean-
...restmore attrsReact.HTMLAttributes<HTMLDivElement>-