An open API service indexing awesome lists of open source software.

https://github.com/rsuite/responsive-nav

A tab component based on rsuite nav enhancements
https://github.com/rsuite/responsive-nav

Last synced: 6 months ago
JSON representation

A tab component based on rsuite nav enhancements

Awesome Lists containing this project

README

          

# Responsive Nav

A responsive navigation component based on rsuite navigation enhancements.

## features

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

## Installation

```
npm install @rsuite/responsive-nav --save
```

## Usage

```js
import Nav from "@rsuite/responsive-nav";
const App = () => {
return (

Item A
Item B
Item C
Item D
Item E

);
};

ReactDOM.render(, mountNode);
```

## Props

`ResponsiveNav` extends all the props of [`Nav`](https://rsuitejs.com/en/components/nav) and also supports:

| Property | Type`(Default)` | Description |
| ------------ | ---------------- | ------------------------------------------- |
| moreProps | object | More drop-down menu props |
| moreText | React.Node | More text displayed on the drop-down |
| onItemRemove | (eventKey)=>void | The callback function when removing options |
| removable | boolean | Options can be removed |

## License

MIT licensed