33 lines
647 B
Vue
33 lines
647 B
Vue
<template>
|
|
<button
|
|
type="button"
|
|
class="ext-cta"
|
|
:class="`ext-cta--${variant}`"
|
|
:title="hint"
|
|
@click="emit('click')"
|
|
>
|
|
<span class="ext-cta__badge" aria-hidden="true">
|
|
<slot name="icon" />
|
|
</span>
|
|
<span class="ext-cta__label">{{ label }}</span>
|
|
<span class="ext-cta__arrow-wrap" aria-hidden="true">
|
|
<t-icon name="jump" class="ext-cta__arrow" />
|
|
</span>
|
|
</button>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
withDefaults(
|
|
defineProps<{
|
|
label: string
|
|
hint?: string
|
|
variant?: 'chrome' | 'claw'
|
|
}>(),
|
|
{ variant: 'chrome' },
|
|
)
|
|
|
|
const emit = defineEmits<{
|
|
click: []
|
|
}>()
|
|
</script>
|