Skip to content

Commit

Permalink
MonochromeButtonの追加
Browse files Browse the repository at this point in the history
  • Loading branch information
ZOI-dayo committed Oct 8, 2024
1 parent 83d345e commit 7f376e0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/components/Controls/MonochromeButton.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<script setup lang="ts">
const { disabled = false } = defineProps<{
disabled?: boolean
text: string
}>()
const emit = defineEmits(['click'])
function onClick() {
emit('click')
}
</script>

<template>
<button
:disabled="disabled"
class="fontstyle-ui-control-strong rounded border border-text-primary px-6 py-1.75 text-text-primary enabled:hover:bg-background-secondary disabled:opacity-50"
@click="onClick"
>
{{ text }}
</button>
</template>

<style scoped></style>

0 comments on commit 7f376e0

Please sign in to comment.