Files
nimbus/resources/js/components/base/button/AppGlowingButton.vue
Mazen Touati 35b96042f0 refactor: solidify the FE codebase and improve UI consistency (#45)
* chore: add storybook

* chore: unify FE codeabse

* chore: update eslint rules

* chore: harmonize the use of "subtle" color

* chore: remove an extra sidebar rail

* refactor: make panel items more consistent

* chore: cleanups after merging new code from base

* refactor: refine composables

* fix: add lost import

* chore: make icon style consistent

* fix: don't show empty "supported" methods

* refactor: solidify select items
2026-01-25 14:30:07 +01:00

44 lines
1.0 KiB
Vue

<script setup lang="ts">
/**
* @component AppGlowingButton
* @description A button with a glowing animated border effect.
*/
import { type AppButtonProps } from '@/components/base/button/AppButton.vue';
import { AppButton } from '@/components/base/button/index';
import AppBorderBeam from '@/components/base/glow-border/AppBorderBeam.vue';
import { cn } from '@/utils/ui';
/*
* Types & Interfaces.
*/
export interface AppGlowingButtonProps extends AppButtonProps {
duration?: number;
beamSize?: number;
}
/*
* Component Setup.
*/
const props = withDefaults(defineProps<AppGlowingButtonProps>(), {
size: 'xs',
variant: 'secondary',
duration: 10,
beamSize: 200,
});
</script>
<template>
<AppButton :size="size" :variant="variant" :class="cn('group relative', props.class)">
<AppBorderBeam
:size="beamSize"
:duration="duration"
:delay="0"
:border-width="1"
class="group-disabled:hidden"
/>
<slot></slot>
</AppButton>
</template>