mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 08:28:20 +01:00
24 lines
499 B
Vue
24 lines
499 B
Vue
<script setup lang="ts">
|
|
import { Primitive, type PrimitiveProps } from "reka-ui";
|
|
import type { HTMLAttributes } from "vue";
|
|
import { cn } from "~/lib/utils";
|
|
|
|
interface Props extends PrimitiveProps {
|
|
class?: HTMLAttributes["class"];
|
|
}
|
|
|
|
const props = withDefaults(defineProps<Props>(), {
|
|
as: "strong",
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<Primitive
|
|
:as="as"
|
|
:as-child="asChild"
|
|
:class="cn('font-semibold', props.class)"
|
|
>
|
|
<slot />
|
|
</Primitive>
|
|
</template>
|