* feat(ui): add `input group` base component * feat(history): add history viewer and rewind * test: update selector snapshot * test: add PW base page * style: apply TS style fixes * chore(history): request history wiki * chore(history): remove unwanted symbol * chore: fix type * style: apply TS style fixes
22 lines
548 B
Vue
22 lines
548 B
Vue
<script setup lang="ts">
|
|
import { AppButton } from '@/components/base/button';
|
|
import { cn } from '@/utils';
|
|
import type { InputGroupButtonProps } from '.';
|
|
import { inputGroupButtonVariants } from '.';
|
|
|
|
const props = withDefaults(defineProps<InputGroupButtonProps>(), {
|
|
size: 'xs',
|
|
variant: 'ghost',
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<AppButton
|
|
:data-size="props.size"
|
|
:variant="props.variant"
|
|
:class="cn(inputGroupButtonVariants({ size: props.size }), props.class)"
|
|
>
|
|
<slot />
|
|
</AppButton>
|
|
</template>
|