v2.5.3

Container

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

Usage

Use the default slot to center and constrain the width of your content.

Its max width is controlled by the --b24ui-container-width CSS variable.
<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

https://github.com/bitrix24/b24ui/tree/main/src/theme/container.ts
export default {
  base: 'w-full max-w-(--b24ui-container-width) mx-auto px-4 sm:px-6 lg:px-8'
}