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