3.0.3 • Published 6 years ago

@thevelops/tv-menus v3.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

tv-menus

A collection of menu components

Installing

npm install --save tv-menus

In you style index add:

@import path/to/node_modules/tv-menus/dist/style.css

Components

  • Header - A Header with logo and clickable items
  • Sidebar - A exapandable Sidebar with clickable items

Docs

Header

Header with logo, a tab bar and options on the right

FieldTypeDescription
classNamestring
itemsarrayarray of items
logostringurl to logo image.
logoClickActionfunc
optionsarrayarray of options
titlestring

header items

Placed in the left side next to the title

FieldTypeDescription
idstring(required)
namestring(required)
clickActionfunc

header options

Placed in the far right side

FieldTypeDescription
idstring(required)
clickActionfunc
imgstringurl to icon image
namestring

Sidebar

Sidebar with expandable option

FieldTypeDescription
classNamestring
expandableboolDefault false
itemsarrayarray of items

sidebar items

FieldTypeDescription
idstring(required)
labelstring(required)
clickActionfunc
iconstringUrl to icon image. Required when expandable is true.

Development

For development checkout this section.

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.0

6 years ago