Использование
Компонент FooterColumns отрисовывает список колонок для вашего Footer.
Используйте его в слоте top компонента Footer:
<template>
<B24Footer>
<template #top>
<B24Container>
<B24FooterColumns />
</B24Container>
</template>
</B24Footer>
</template>
Колонки
Пропс columns — массив объектов со свойствами:
label: stringchildren?: FooterColumnLink[]
Каждая колонка содержит массив children с объектами-ссылками. У ссылки могут быть свойства:
label?: stringicon?: IconComponentclass?: anyb24ui?: { item?: ClassNameValue, link?: ClassNameValue, linkLabel?: ClassNameValue, linkLabelExternalIcon?: ClassNameValue, linkLeadingIcon?: ClassNameValue }
Можно передать любое свойство компонента Link, например to, target и другие.
Подпись колонки по умолчанию отрисовывается как
h3. Чтобы изменить тег, передайте в пропс as объект, например :as="{ label: 'h4' }". Корневой элемент задаётся так же: :as="{ root: 'div', label: 'h4' }".API
Пропсы
Слоты
Тема
https://github.com/bx-shef/b24-ui/tree/main/src/theme/footer-columns.ts
export default {
slots: {
root: 'xl:grid xl:grid-cols-3 xl:gap-8',
left: 'mb-10 xl:mb-0',
center: 'flex flex-col lg:grid grid-flow-col auto-cols-fr gap-8 xl:col-span-2',
right: 'mt-10 xl:mt-0',
label: 'text-(length:--ui-font-size-lg)/[normal] font-(--ui-font-weight-semi-bold)',
list: 'mt-6 space-y-4',
item: 'relative',
link: 'group text-sm flex items-center gap-1.5 focus-visible:outline-1 focus-visible:outline-(--ui-color-design-outline-focused-stroke)',
linkLeadingIcon: 'size-5 shrink-0',
linkLabel: 'truncate',
linkLabelExternalIcon: 'inline-block size-[14px] text-(--ui-color-design-plain-content-icon-secondary)'
},
variants: {
active: {
true: {
link: 'text-primary font-medium'
},
false: {
link: 'text-description hover:text-label transition-colors'
}
}
}
}