You've already forked pages
forked from didirus/AstralRinth
Replaced all icon usages of `apps/frontend/src/assets/image/utils` for `@modrinth/assets`. The only icon which has been changed is the `WorldIcon`, which has been replaced by the `GlobeIcon`.
23 lines
460 B
Vue
23 lines
460 B
Vue
<script setup lang="ts">
|
|
import { RadioButtonIcon, RadioButtonCheckedIcon } 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" />
|
|
<RadioButtonCheckedIcon v-else class="w-4 h-4" />
|
|
<slot />
|
|
</div>
|
|
</div>
|
|
</template>
|