Documents / @faasjs/ant-design / Tabs
Function: Tabs()
Tabs(
props
):Element
Tabs component with Ant Design & FaasJS
- Based on Ant Design Tabs.
- Support auto skip null/false tab item.
- Support
id
as key and label.
Parameters
• props: TabsProps
Returns
Element
Example
import { Tabs } from '@faasjs/ant-design'
<Tabs
items={[
{
id: 'id',
children: 'content',
},
1 === 0 && {
id: 'hidden',
children: 'content',
},
]}
/>