diff options
| author | Terry Truong <terry06890@gmail.com> | 2023-01-06 16:59:54 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2023-01-06 16:59:54 +1100 |
| commit | 50fc47e6e387c3b278526ef773badf63913389d6 (patch) | |
| tree | 71be9fa001ce6848e298bdabe400eb9dbd26848c /src/components/SButton.vue | |
| parent | 559902e0211a06b349c4c2f50b0882a8d314f8b7 (diff) | |
Add settings modal
Add saving, loading, default vals, and device-detection, to store.ts.
Add setting for hiding minor tick labels.
Diffstat (limited to 'src/components/SButton.vue')
| -rw-r--r-- | src/components/SButton.vue | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/SButton.vue b/src/components/SButton.vue new file mode 100644 index 0000000..487d6bd --- /dev/null +++ b/src/components/SButton.vue @@ -0,0 +1,12 @@ +<template> +<button :disabled="disabled" class="block rounded px-4 py-2" + :class="{'hover:brightness-125': !disabled, 'brightness-50': disabled}"> + <slot>?</slot> +</button> +</template> + +<script setup lang="ts"> +defineProps({ + disabled: {type: Boolean, default: false}, +}); +</script> |
