forked from
npmx.dev/npmx.dev
[READ-ONLY]
a fast, modern browser for the npm registry
1<script setup lang="ts">
2const props = defineProps<{
3 modalTitle?: string
4}>()
5
6const emit = defineEmits<{
7 (e: 'transitioned'): void
8}>()
9</script>
10
11<template>
12 <Modal
13 :modalTitle="modalTitle ?? $t('package.trends.title')"
14 id="chart-modal"
15 class="h-full sm:h-min sm:border sm:border-border sm:rounded-lg shadow-xl sm:max-h-[90vh] sm:max-w-3xl"
16 @transitioned="emit('transitioned')"
17 >
18 <div class="font-mono text-sm">
19 <slot />
20 </div>
21 <slot name="after" />
22 </Modal>
23</template>