@9softstudio/simple-react-tab 中文文档教程
simple-react-tab
Usage
import { Tabs, Tab } from '../dist/index'
import Tab1 from './components/Tab1'
import Tab2 from './components/Tab2'
export default class App extends Component {
constructor(props) {
super(props);
}
render() {
return (
<Tabs>
<Tab isActive={true} label="Tab1">
<Tab1 />
</Tab>
<Tab isActive={false} label="Tab2">
<Tab2 />
</Tab>
</Tabs>
);
}
}
License
麻省理工学院
simple-react-tab
Usage
import { Tabs, Tab } from '../dist/index'
import Tab1 from './components/Tab1'
import Tab2 from './components/Tab2'
export default class App extends Component {
constructor(props) {
super(props);
}
render() {
return (
<Tabs>
<Tab isActive={true} label="Tab1">
<Tab1 />
</Tab>
<Tab isActive={false} label="Tab2">
<Tab2 />
</Tab>
</Tabs>
);
}
}
License
MIT
更多