mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-08 16:03:27 +00:00
29 lines
568 B
Svelte
29 lines
568 B
Svelte
<script lang="ts">
|
|
import AnimatedButtonInner from './AnimatedButtonInner.svelte'
|
|
export let marginWidth = '2px'
|
|
export let animationDuration = '2s'
|
|
export let baseRadius = '4px'
|
|
export let animate = true
|
|
export let wrapperClasses = ''
|
|
export let ringColor = 'transparent'
|
|
export let darkMode = false
|
|
</script>
|
|
|
|
{#if animate}
|
|
<AnimatedButtonInner
|
|
{marginWidth}
|
|
{animationDuration}
|
|
{baseRadius}
|
|
{animate}
|
|
{wrapperClasses}
|
|
{ringColor}
|
|
{darkMode}
|
|
>
|
|
<slot />
|
|
</AnimatedButtonInner>
|
|
{:else}
|
|
<div class={wrapperClasses}>
|
|
<slot />
|
|
</div>
|
|
{/if}
|