Kbd
Learn how to use the ProseKbd component in your Nuxt app.
Use the kbd
component to display a Kbd in your content.
K
:kbd{value="meta"} :kbd{value="K"}
API
Props
Prop | Default | Type |
---|---|---|
value |
|
Theme
app.config.ts
export default defineAppConfig({
ui: {
prose: {
kbd: {
base: 'align-text-top'
}
}
}
})
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: {
kbd: {
base: 'align-text-top'
}
}
}
})
]
})
Changelog
No recent changes