32 lines
518 B
Vue
32 lines
518 B
Vue
<template>
|
|
<BaseButton
|
|
class="trigger-button"
|
|
:aria-pressed="pressed || undefined"
|
|
>
|
|
<slot />
|
|
</BaseButton>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import BaseButton from '@/components/base/BaseButton.vue'
|
|
|
|
defineProps<{
|
|
pressed?: boolean
|
|
}>()
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.trigger-button {
|
|
cursor: pointer;
|
|
color: var(--grey-400);
|
|
transition: $transition;
|
|
padding: .5rem;
|
|
font-size: 1.25rem;
|
|
position: relative;
|
|
width: $navbar-icon-width;
|
|
}
|
|
|
|
[aria-pressed] {
|
|
color: var(--primary);
|
|
}
|
|
</style> |