react-button-navbar
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

React Button Navbar

Navigation menu for React.js

Installation

npm install --save react-button-navbar
yarn add react-button-navbar

demo for navbar

Usage

import React,{useState} from 'react'
import Select, { Option } from 'react-button-navbar';

function App(){
  const [current, setCurrent] = useState("opt1")
  return (
    <Select currentValue={current} onSelect={(value)=>{setCurrent(value)}} >
      <Option value="opt1">Option 1</Option>
      <Option value="opt2">Option 2</Option>
      <Option value="opt3">Option 3</Option>
      <Option value="opt4">Option 4</Option>
    </Select>
  )
}

export default App

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Dependencies (4)

Dev Dependencies (6)

Package Sidebar

Install

npm i react-button-navbar

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

14.1 kB

Total Files

7

Last publish

Collaborators

  • egecetindag