Updated
This commit is contained in:
@@ -3,18 +3,21 @@
|
|||||||
// types
|
// types
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
selectable?: boolean,
|
||||||
selected?: boolean;
|
selected?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
// props
|
// props
|
||||||
|
|
||||||
defineProps<Props>();
|
withDefaults(defineProps<Props>(), {
|
||||||
|
selectable: false
|
||||||
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="size-[25px] rounded-full transition-all ring-2 ring-offset-4 shadow-black/30 shadow-inner"
|
class="size-[25px] rounded-full transition-all shadow-black/30 shadow-inner"
|
||||||
:class="selected ? 'ring-blue-500' : 'ring-transparent'"
|
:class="[selectable ? 'ring-2 ring-offset-4 ' : '', selected ? 'ring-blue-500' : 'ring-transparent']"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
Reference in New Issue
Block a user