This repository has been archived on 2025-10-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
rebuilding-uis/src/components/Sidebar.vue

32 lines
1,011 B
Vue
Raw Normal View History

2018-12-25 22:46:21 +00:00
<template>
2019-03-14 18:26:37 +00:00
<div class="w-auto lg:w-56 bg-grey-3 text-grey-4 antialiased fixed pin-l h-full overflow-y-scroll z-30">
2018-12-25 22:46:21 +00:00
<div>
<ul class="list-reset">
2019-02-08 13:55:29 +00:00
<li v-for="link in links" :key="link.title">
2018-12-25 22:46:21 +00:00
<a
href="#0"
2019-02-08 14:07:54 +00:00
class="flex items-center no-underline focus:underline px-4 py-2 text-sm"
2018-12-25 22:46:21 +00:00
:class="{
2019-03-14 13:17:20 +00:00
'bg-grey-6 text-white hover:text-white': link.active,
2019-03-14 13:31:30 +00:00
'border-transparent hover:bg-grey-4': !link.active,
2019-03-10 09:04:53 +00:00
'text-grey-5 cursor-not-allowed': link.disabled,
2019-03-14 13:17:20 +00:00
'text-grey-6 hover:text-blue-3': !link.disabled && !link.active,
2018-12-25 22:46:21 +00:00
}"
>
<svg class="h-6 w-6 fill-current" role="presentation"><use :xlink:href="`/img/icons.symbol.svg#${link.icon}`"></use></svg>
<span class="hidden lg:block lg:ml-4">{{ link.title }}</span>
</a>
</li>
</ul>
</div>
</div>
</template>
<script>
export default {
props: {
links: Array,
},
}
</script>