Skip to content

Commit

Permalink
BorderedButtonの追加
Browse files Browse the repository at this point in the history
  • Loading branch information
ZOI-dayo committed Oct 8, 2024
1 parent c8b76a2 commit 83d345e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/components/Controls/BorderedButton.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-brand-primary px-6 py-1.75 text-brand-primary enabled:hover:bg-brand-light-primary disabled:opacity-50"
@click="onClick"
>
{{ text }}
</button>
</template>

<style scoped></style>
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default {
spacing: {
'7.5': '1.875rem',
'1.625': '0.40625rem',
'1.75': '0.4375rem',
'4.5': '1.125rem',
'27': '6.75rem',
'50': '12.5rem',
Expand Down

0 comments on commit 83d345e

Please sign in to comment.