@thevelops/tv-menus
v3.0.3
Published
A collection of menu components
Readme
tv-menus
A collection of menu components
Installing
npm install --save tv-menusIn you style index add:
@import path/to/node_modules/tv-menus/dist/style.cssComponents
Docs
Header
Header with logo, a tab bar and options on the right
Field | Type | Description --- | :---: | --- className | string | items | array | array of items logo | string | url to logo image. logoClickAction | func | options | array | array of options title | string |
header items
Placed in the left side next to the title
Field | Type | Description --- | :---: | --- id | string | (required) name | string | (required) clickAction | func |
header options
Placed in the far right side
Field | Type | Description --- | :---: | --- id | string | (required) clickAction | func | img | string | url to icon image name | string |
Sidebar
Sidebar with expandable option
Field | Type | Description --- | :---: | --- className | string | expandable | bool | Default false items | array | array of items
sidebar items
Field | Type | Description --- | :---: | --- id | string | (required) label | string | (required) clickAction | func | icon | string | Url to icon image. Required when expandable is true.
Development
For development checkout this section.
