FaasJS
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security

Documents / @faasjs/ant-design / Tabs

Function: Tabs()

Tabs(props): Element

Render an Ant Design tabs wrapper that accepts FaasJS-style tab definitions.

Missing key and label values are derived from each tab's id and title.

Parameters

props

TabsProps

Tabs props including tab items and Ant Design tab options.

Returns

Element

Example

import { Tabs } from '@faasjs/ant-design'

export function Page() {
  return (
    <Tabs
      items={[
        {
          id: 'id',
          children: 'content',
        },
        1 === 0 && {
          id: 'hidden',
          children: 'content',
        },
      ]}
    />
  )
}