0.0.2 • Published 5 years ago

@rsuite/tab-nav v0.0.2

Weekly downloads
9
License
MIT
Repository
github
Last release
5 years ago

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