Badge
Learn how to use the ProseBadge component in your Nuxt app.
Use markdown in the default slot of the badge
component to display a Badge in your content.
v3.0.0
::badge
**v3.0.0**
::
Theme
app.config.ts
export default defineAppConfig({
ui: {
prose: {
badge: {
base: 'rounded-full'
}
}
}
})
vite.config.ts
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import ui from '@nuxt/ui/vite'
export default defineConfig({
plugins: [
vue(),
ui({
ui: {
prose: {
badge: {
base: 'rounded-full'
}
}
}
})
]
})