1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-02 23:19:57 +00:00
elk/components/account/AccountRoleIndicator.vue

24 lines
397 B
Vue
Raw Normal View History

<script setup lang="ts">
interface Role {
name: string
color: string
}
defineProps<{
role: Role
}>()
</script>
<template>
<div
flex="~ gap1" items-center
class="border border-base rounded-md px-1"
text-secondary-light
>
<slot name="prepend" />
<div :style="`color: ${role.color}; border-color: ${role.color}`">
{{ role.name }}
</div>
</div>
</template>