1.0.2 • Published 2 years ago

nextra-synced-tabs v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

nextra-synced-tabs

Synchronize selected tabs in your Nextra site and store the selected index in local storage

Demo

Installation

npm install nextra-synced-tabs

Usage

import { SyncedTabs } from "nextra-synced-tabs";

<SyncedTabs name="packageManager" items={["pnpm", "npm", "yarn"]}>
  <SyncedTabs.Tab>
    **pNPM**: Fast, disk space efficient package manager.
  </SyncedTabs.Tab>
  <SyncedTabs.Tab>
    **npm** is a package manager for the JavaScript programming language.
  </SyncedTabs.Tab>
  <SyncedTabs.Tab>**Yarn** is a software packaging system.</SyncedTabs.Tab>
</SyncedTabs>;

API Reference

\<SyncedTabs>

Props

NameTypeDescription
namestringThe name of the tab group. This will be used as a key in local storage.
itemsReact.ReactNodeThe tab names to be displayed in the tab group.
defaultIndexnumberThe default selected index of the tab group.
childrenReact.ReactNodeThe content panel for each tab.
1.0.2

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago