--- order: 4 title: zh-CN: 主题 en-US: Menu Themes --- ## zh-CN 内建了两套主题 `light|dark`,默认 `light`。 ## en-US There are two built-in themes: 'light' and 'dark'. The default value is 'light'. ````jsx import { Menu, Icon, Switch } from 'antd'; const SubMenu = Menu.SubMenu; class Sider extends React.Component { state = { theme: 'dark', current: '1', } changeTheme = (value) => { this.setState({ theme: value ? 'dark' : 'light', }); } handleClick = (e) => { console.log('click ', e); this.setState({ current: e.key, }); } render() { return (