Use markdown in the default slot of the callout component to add eye-catching context to your content.
Use the icon and color props to customize it. You can also pass any property from the <NuxtLink> component.
::callout{icon="i-lucide:square-play" color="neutral" to="/docs/pohon/getting-started/installation"}
This is a `callout` with full **markdown** support.
::
You can also use the note, tip, warning and caution shortcuts with pre-defined icons and colors.
::note
Here's some additional information.
::
::tip
Here's a helpful suggestion.
::
::warning
Be careful with this action as it might have unexpected results.
::
::caution
This action cannot be undone.
::
| Prop | Default | Type |
|---|
| Slot | Type |
|---|
Below is the theme configuration skeleton for the ProseCallout. Since the component is provided unstyled by default, you will need to fill in these values to apply your own custom look and feel. If you prefer to use our pre-built, opinionated styling, you can instead use our UnoCSS preset, this docs is using it as well.
export default defineAppConfig({
pohon: {
prose: {
callout: {
slots: {
base: '',
icon: '',
externalIcon: ''
},
variants: {
color: {
primary: {
base: '',
icon: '',
externalIcon: ''
},
secondary: {
base: '',
icon: '',
externalIcon: ''
},
success: {
base: '',
icon: '',
externalIcon: ''
},
info: {
base: '',
icon: '',
externalIcon: ''
},
warning: {
base: '',
icon: '',
externalIcon: ''
},
error: {
base: '',
icon: '',
externalIcon: ''
},
neutral: {
base: '',
icon: '',
externalIcon: ''
}
},
to: {
true: ''
}
},
compoundVariants: [],
defaultVariants: {
color: 'neutral'
}
}
}
}
};
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import pohon from 'pohon-ui/vite'
export default defineAppConfig({
pohon: {
prose: {
callout: {
slots: {
base: '',
icon: '',
externalIcon: ''
},
variants: {
color: {
primary: {
base: '',
icon: '',
externalIcon: ''
},
secondary: {
base: '',
icon: '',
externalIcon: ''
},
success: {
base: '',
icon: '',
externalIcon: ''
},
info: {
base: '',
icon: '',
externalIcon: ''
},
warning: {
base: '',
icon: '',
externalIcon: ''
},
error: {
base: '',
icon: '',
externalIcon: ''
},
neutral: {
base: '',
icon: '',
externalIcon: ''
}
},
to: {
true: ''
}
},
compoundVariants: [],
defaultVariants: {
color: 'neutral'
}
}
}
}
};