mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
20 lines
462 B
Vue
20 lines
462 B
Vue
<script setup lang="ts">
|
|
import json5 from 'json5'
|
|
|
|
const appConfig = useAppConfig()
|
|
|
|
const { data: ast } = await useAsyncData(`icons-theme`, () => parseMarkdown(`
|
|
\`\`\`yml
|
|
${json5.stringify(appConfig.ui.icons, null, 2).replace(/,([ |\t\n]+[}|\])])/g, '$1')}
|
|
\`\`\`\
|
|
|
|
::tip
|
|
You can customize this component in your \`app.config.ts\` under \`ui.icons\` key.
|
|
::
|
|
`))
|
|
</script>
|
|
|
|
<template>
|
|
<MDCRenderer v-if="ast" :body="ast.body" :data="ast.data" />
|
|
</template>
|