Use the default slot to center and constrain the width of your content.
<template>
<PContainer>
<CorePlaceholder class="h-32" />
</PContainer>
</template>
max-w-$container-8xl class,
which 8xl is defined in the UnoCSS theme.| Prop | Default | Type |
|---|
| Slot | Type |
|---|
Below is the theme configuration skeleton for the PContainer. 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: {
container: {
base: ''
}
}
};
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import pohon from 'pohon-ui/vite'
export default defineAppConfig({
pohon: {
container: {
base: ''
}
}
};