Container

A box for centering and setting a maximum width for your content.

Usage

<template>
  <B24Container>
    <Placeholder class="h-32" />
  </B24Container>
</template>

API

Props

Prop Default Type
as'div'any

The element or component this component should render as.

b24ui { base?: any; }

Slots

Slot Type
default{}

Theme

app.config.ts
export default defineAppConfig({
  b24ui: {
    container: {
      base: 'w-full max-w-[1280px] mx-auto px-[22px]'
    }
  }
})
vite.config.ts
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import bitrix24UIPluginVite from '@bitrix24/b24ui-nuxt/vite'

export default defineConfig({
  plugins: [
    vue(),
    bitrix24UIPluginVite({
      b24ui: {
        container: {
          base: 'w-full max-w-[1280px] mx-auto px-[22px]'
        }
      }
    })
  ]
})
Releases
Published under MIT License.

Copyright © 2024-present Bitrix24