FieldGroup
Group related fields together for comprehensive API documentation.
Usage
Group fields together in a list.
analytics
boolean
Default to
false - Enables analytics for your project (coming soon).blob
boolean
Default to
false - Enables blob storage to store static assets, such as images, videos and more.cache
boolean
Default to
false - Enables cache storage to cache your server route responses or functions using Nitro's cachedEventHandler and cachedFunctiondatabase
boolean
Default to
false - Enables SQL database to store your application's data.::
#code
::field-group
::field{name="analytics" type="boolean"}
Default to `false` - Enables analytics for your project (coming soon).
::
::field{name="blob" type="boolean"}
Default to `false` - Enables blob storage to store static assets, such as images, videos and more.
::
::field{name="cache" type="boolean"}
Default to `false` - Enables cache storage to cache your server route responses or functions using Nitro's `cachedEventHandler` and `cachedFunction`
::
::field{name="database" type="boolean"}
Default to `false` - Enables SQL database to store your application's data.
::
::
::
API
Props
| Prop | Default | Type |
|---|---|---|
as | 'div' | anyThe element or component this component should render as. |
Slots
| Slot | Type |
|---|---|
default | object |
Theme
We use unocss-variants to customize the theme. Read more about it in the theming guide.
Below is the theme configuration skeleton for the ProseFieldGroup. 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.
app.config.ts
export default defineAppConfig({
pohon: {
prose: {
fieldGroup: {
base: ''
}
}
}
};
vite.config.ts
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import pohon from 'pohon-ui/vite'
export default defineAppConfig({
pohon: {
prose: {
fieldGroup: {
base: ''
}
}
}
};
Changelog
No recent changes