Usage
The FooterColumns component renders a list of columns to display in your Footer.
Use it in the top slot of the Footer component:
<template>
<B24Footer>
<template #top>
<B24Container>
<B24FooterColumns />
</B24Container>
</template>
</B24Footer>
</template>
Columns
Use the columns prop as an array of objects with the following properties:
label: stringchildren?: FooterColumnLink[]
Each column contains a children array of objects that define the links. Each link can have the following properties:
label?: stringicon?: IconComponentclass?: anyb24ui?: { item?: ClassNameValue, link?: ClassNameValue, linkLabel?: ClassNameValue, linkLabelExternalIcon?: ClassNameValue, linkLeadingIcon?: ClassNameValue }
You can pass any property from the Link component such as to, target, etc.
The column label is rendered as an
h3 by default. Use the as prop with an object to change it, for example :as="{ label: 'h4' }". You can also set the root element this way: :as="{ root: 'div', label: 'h4' }".API
Props
Slots
Theme
https://github.com/bitrix24/b24ui/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'
}
}
}
}