--- 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; const Sider = React.createClass({ getInitialState() { return { theme: 'light', }; }, changeTheme(value) { this.setState({ theme: value ? 'dark' : 'light', }); }, handleClick(e) { console.log('click ', e); this.setState({ current: e.key, }); }, render() { return (


导航一}> 选项1 选项2 选项3 选项4 导航二}> 选项5 选项6 选项7 选项8 导航三}> 选项9 选项10 选项11 选项12
); }, }); ReactDOM.render(, mountNode); ````