-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from traP-jp/styled-buttons
ボタンのスタイル(Bordered、Monochrome)を追加
- Loading branch information
Showing
4 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<script setup lang="ts"> | ||
const { disabled = false } = defineProps<{ | ||
disabled?: boolean | ||
text: string | ||
padding?: string | ||
}>() | ||
const emit = defineEmits(['click']) | ||
function onClick() { | ||
emit('click') | ||
} | ||
</script> | ||
|
||
<template> | ||
<button | ||
:disabled="disabled" | ||
class="fontstyle-ui-control-strong inline-block h-9 rounded border border-brand-primary px-6 text-brand-primary enabled:hover:bg-brand-light-primary disabled:opacity-50" | ||
:style="{paddingLeft: padding, paddingRight: padding}" | ||
@click="onClick" | ||
> | ||
{{ text }} | ||
</button> | ||
</template> | ||
|
||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<script setup lang="ts"> | ||
const { disabled = false } = defineProps<{ | ||
disabled?: boolean | ||
text: string | ||
padding?: string | ||
}>() | ||
const emit = defineEmits(['click']) | ||
function onClick() { | ||
emit('click') | ||
} | ||
</script> | ||
|
||
<template> | ||
<button | ||
:disabled="disabled" | ||
class="fontstyle-ui-control-strong inline-block h-9 rounded border border-text-primary px-6 text-text-primary enabled:hover:bg-background-secondary disabled:opacity-50" | ||
:style="{paddingLeft: padding, paddingRight: padding}" | ||
@click="onClick" | ||
> | ||
{{ text }} | ||
</button> | ||
</template> | ||
|
||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters