You've already forked AstralRinth
forked from xxxOFFxxx/AstralRinth
23 lines
452 B
Vue
23 lines
452 B
Vue
<script setup lang="ts">
|
|
import { RadioButtonIcon, RadioButtonChecked } from '@modrinth/assets'
|
|
|
|
withDefaults(
|
|
defineProps<{
|
|
checked: boolean
|
|
}>(),
|
|
{
|
|
checked: false,
|
|
},
|
|
)
|
|
</script>
|
|
<template>
|
|
<div class="" role="button" @click="() => {}">
|
|
<slot name="preview" />
|
|
<div>
|
|
<RadioButtonIcon v-if="!checked" class="w-4 h-4" />
|
|
<RadioButtonChecked v-else class="w-4 h-4" />
|
|
<slot />
|
|
</div>
|
|
</div>
|
|
</template>
|