fix. 액션 버튼 그라데이션 적용

This commit is contained in:
clkim
2026-01-21 17:31:00 +09:00
parent fd52031491
commit a67028bab9
2 changed files with 13 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ interface props {
backgroundColor?: string
textColor?: string
disabled?: boolean
gradient?: boolean
}
const props = withDefaults(defineProps<props>(), {
@@ -19,6 +20,7 @@ const props = withDefaults(defineProps<props>(), {
target: '_self',
textColor: 'var(--alternative-02)',
disabled: false,
gradient: false,
})
const componentTag = computed((): string => {
@@ -85,6 +87,7 @@ const componentProps = computed(() => {
}"
:disabled="props.disabled"
>
<i v-if="props.gradient" class="btn-gradient"></i>
<span class="btn-content">
<slot />
<AtomsIconsLongArrowRightLine
@@ -146,4 +149,13 @@ const componentProps = computed(() => {
.btn-base.size-extra-small .btn-content {
@apply gap-0.5;
}
.btn-gradient {
@apply absolute top-0 left-0 w-full h-full opacity-[0.7] mix-blend-soft-light;
background: radial-gradient(
68.19% 81.25% at 50.35% 100%,
#fff 20%,
rgba(255, 255, 255, 0) 100%
);
}
</style>