vue-sidebar-menu-akahon
A Vue.js sidebar menu component.
View demo | Sandbox
yarn add vue-sidebar-menu-akahon
Or
npm install --save vue-sidebar-menu-akahon
// main.js
import VueSidebarMenuAkahon from "vue-sidebar-menu-akahon";
Vue.component('vue-sidebar-menu-akahon', VueSidebarMenuAkahon);
<template>
<div>
<VueSidebarMenuAkahon />
</div>
</template>
<script>
import VueSidebarMenuAkahon from "vue-sidebar-menu-akahon";
export default {
name: 'component.vue',
components: {VueSidebarMenuAkahon},
data() {
return {}
}
}
</script>
Compiles and hot-reloads for development
Compiles and minifies for production
See Configuration Reference.
You can use icons from boxicons
Menu settings
Props (Parameter) |
Type |
Default |
Description |
isMenuOpen |
Boolean |
true |
Open/Close menu |
menuTitle |
String |
'Akahon' |
Menu title |
menuLogo |
String |
- |
Logo |
menuIcon |
String |
'bxl-c-plus-plus' |
Icon (boxicons) |
Menu items
Props (Parameter) |
Type |
Default |
Description |
menuItems |
Array |
[{link: "#",name: "Dashboard", tooltip: "Dashboard", icon: "bx-grid-alt" }] |
Items |
Props (Parameter) |
Type |
Default |
Description |
isSearch |
Boolean |
true |
Enable/Disable search input |
searchPlaceholder |
String |
'Search...' |
Search input placeholder |
searchTooltip |
String |
'Search' |
Search input tooltip |
Props (Parameter) |
Type |
Default |
Description |
profileImg |
String |
'@/assets/img/photo.jpg' |
Profile avatar |
profileName |
String |
'Fayzullo Saidakbarov' |
Profile full name |
profileRole |
String |
'Frontend vue developer' |
Profile role title |
isExitButton |
Boolean |
true |
Enable/Disable exit button |
Props (Parameter) |
Type |
Default |
Description |
bgColor |
String |
'#11101d' |
Background color |
secondaryColor |
String |
'#1d1b31' |
Secondary color |
homeSectionColor |
String |
'#e4e9f7' |
|
logoTitleColor |
String |
'#fff' |
|
iconsColor |
String |
'#fff' |
|
itemsTooltipColor |
String |
'#e4e9f7' |
|
searchInputTextColor |
String |
'#fff' |
|
menuItemsHoverColor |
String |
'#fff' |
|
menuItemsTextColor |
String |
'#fff' |
|
menuFooterTextColor |
String |
'#fff' |
|
Event |
Output |
Description |
button-exit-clicked |
- |
Emitted when the exit button has been clicked |
search-input-emit |
String |
Emitted when user types in the search input |
Prem Shahi
The MIT License
See Configuration Reference.