A collection of menu components
Installing
npm install --save tv-menus
Components
- Header - A Header with logo and clickable items
- Sidebar - A exapandable Sidebar with clickable items
Docs
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 | |
Placed in the left side next to the title
Field | Type | Description |
---|
id | string | (required) |
name | string | (required) |
clickAction | func | |
Placed in the far right side
Field | Type | Description |
---|
id | string | (required) |
clickAction | func | |
img | string | url to icon image |
name | string | |
Sidebar with exanpadle option
Field | Type | Description |
---|
className | string | |
expandable | bool | Default false |
items | array | array of 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 delevepment checkout this section.