New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@rsuite/tab-nav

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rsuite/tab-nav

A tab component based on rsuite nav enhancements

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
4
Created
Source

TabNav

A tab component based on rsuite nav enhancements.

features

  • Support for removable tabs.
  • Support for automatic folding options when a row can not show all options.

Installation

npm install @rsuite/tab-nav --save

Usage

import TabNav from "@rsuite/tab-nav";
const App = () => {
  return (
    <TabNav>
      <TabNav.Item eventKey="A">Item A</TabNav.Item>
      <TabNav.Item eventKey="B">Item B</TabNav.Item>
      <TabNav.Item eventKey="C">Item C</TabNav.Item>
      <TabNav.Item eventKey="D">Item D</TabNav.Item>
      <TabNav.Item eventKey="E">Item E</TabNav.Item>
    </TabNav>
  );
};

ReactDOM.render(<App />, mountNode);

Props

TabNav extends all the props of Nav and also supports:

PropertyType(Default)Description
morePropsobjectMore drop-down menu props
moreTextReact.NodeMore text displayed on the drop-down
onItemRemove(eventKey)=>voidThe callback function when removing options
removablebooleanOptions can be removed

License

MIT licensed

Keywords

tab

FAQs

Package last updated on 09 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts