0.1.4 • Published 2 months ago

@olton/octo-menu v0.1.4

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

Octo-Menu

npm.io

Octo-Menu - Ribbon style menu for React.

The following components are available to you:

  • Push Button
  • Icon Button
  • Tool Button (same as an icon button, but without caption)
  • Split Button
  • Dropdown Menu
  • Dropdown Menu Groups
  • Dividers (vertical and horizontal) for divide buttons (or any elements) inside a group
  • Hotkey binder
  • Service Panel
  • Group
  • Button Group

You can group elements into groups. Each group can have a title. If elements do not fit in the section, left and right menu scroll buttons appear.

You can create a button group where buttons will work as switchers. In the Dropdown Menu, elements also can work as switchers, including radio style.

Also, available is a service-panel, which is shown in the top right corner of the menu. You can put elements into this panel.

Install

npm install @olton/octo-menu

Using

import React from "react"
import {
    Menu,
    Group,
    Divider,
    Button,
    Dropdown,
    DropdownMenu,
    DropdownMenuItem,
    DropdownMenuDivider,
    DropdownMenuGroup,
    IconButton,
    ToolButton,
    SplitButton,
    ButtonGroup,
    HorizontalDivider,
    VerticalDivider,
    ServicePanel 
} from "@olton/octo-menu"

const App = () => {
    return (
        <>
            <Menu>...</Menu>
        </>
    )
}

Demo on CodeSandbox.

0.1.4

2 months ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago