diff --git a/docs/examples/basic.tsx b/docs/examples/basic.tsx index c92eed9f..f92b79f9 100644 --- a/docs/examples/basic.tsx +++ b/docs/examples/basic.tsx @@ -1,19 +1,26 @@ import React from 'react'; -import Tabs, { TabPane } from 'rc-tabs'; +import Tabs from 'rc-tabs'; import '../../assets/index.less'; export default () => { const [destroy, setDestroy] = React.useState(false); - const [children, setChildren] = React.useState([ - - Light - , - - Bamboo - , - - Cute - , + const [items, setItems] = React.useState([ + { + label: 'Light', + key: 'light', + children: 'Light!', + }, + { + label: 'Bamboo', + key: 'bamboo', + children: 'Bamboo!', + }, + { + label: 'Cute', + key: 'cute', + children: 'Cute!', + disabled: true, + }, ]); if (destroy) { @@ -22,16 +29,16 @@ export default () => { return ( - - {children} - +