3.1.0 • Published 5 years ago

@ds-kit/tabs v3.1.0

Weekly downloads
-
License
LicenseRef-LICENS...
Repository
-
Last release
5 years ago

title: "Tabs" slug: "/packages/tabs" category: "control" componentNames:

  • "TabBar"

Tabs

The Tabs component provides a way to navigate between different views in the same context.

import { TabBar } from "@ds-kit/tabs"

Basic Example

<TabBar items={[{ key: 0, label: "Item 1" }, { key: 1, label: "Item 2" }]} />

RenderProps Example wrapping Tab with a tag

<TabBar
  items={[
    {
      key: 0,
      label: "Item 1",
      tabProps: {
        as: "a",
        href: "https://ds-kit.herokuapp.com/packages/tabs/",
      },
      render: d => <strong>{d.label}</strong>,
    },
    {
      key: 1,
      label: "Item 2",
      tabProps: {
        as: "a",
        href: "https://ds-kit.herokuapp.com/packages/tabs/",
      },
    },
  ]}
/>
3.1.0

5 years ago

3.0.0

5 years ago

2.0.0

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago