ultrawidify/src/common/components/ShortcutButton.vue

31 lines
457 B
Vue
Raw Normal View History

<template>
2019-01-17 22:16:55 +01:00
<div class="flex flex-column flex-center">
<div class="flex flex-self-center">
{{label}}
</div>
2019-01-17 22:16:55 +01:00
<div class="flex dark flex-self-center">
<small>
{{shortcut ? `(${shortcut})` : ''}}
</small>
</div>
</div>
</template>
<script>
export default {
props: {
label: String,
shortcut: String
}
}
</script>
2019-01-17 22:16:55 +01:00
<style scoped>
.center-text {
text-align: center;
}
.dark {
opacity: 50%;
}
</style>