<script setup>
defineProps({
  ordered: {
    type: Boolean,
    default: false
  }
})
</script>

<template>
  <component
    :is="ordered ? 'ol' : 'ul'"
    class="prose-list mb-2.5 space-y-2 pl-5 text-[15px] leading-8 text-[var(--site-text)] marker:text-[var(--site-muted)]"
    :class="ordered ? 'list-decimal' : 'list-disc'"
  >
    <slot />
  </component>
</template>
