3.0.3 • Published 6 years ago
@thevelops/tv-menus v3.0.3
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
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.