Skip to content

WtContentWrapper ​

Базовий структурний контейнер всередині wt-layout для розміщення контенту: обмежує ширину, керує внутрішніми відступами та вирівнюванням. Не містить бізнес-логіки та може включати будь-які UI-компоненти або їх групи (секції, форми, таблиці, списки, картки...).

  • Width — успадковує правила ширини від Layout.
  • Height — Hug Content: росте відповідно до висоти вмісту.

Props ​

PropTypeDefaultDescription
align'left' | 'center' | 'stretch''left'Горизонтальне вирівнювання

CSS variables ​

VariableLightDark
--wt-content-wrapper-background-color--p-surface-0--p-surface-800
--wt-content-wrapper-border-radius--p-border-radius-lg--p-border-radius-lg
--wt-content-wrapper-padding--spacing-sm--spacing-sm
--wt-content-wrapper-gap--spacing-sm--spacing-sm

Example Content Wrapper ​

Code
vue
<template>
  <div style="display: flex; flex-direction: column; gap: 16px; padding: 16px; background: var(--wt-page-background-color)">
    <wt-content-wrapper v-for="align of ['left', 'center', 'stretch']" :key="align" :align="align">
      <wt-button>{{ align }}</wt-button>
    </wt-content-wrapper>
  </div>
</template>