Usage
Use the links
prop to display a list of links. Each link will be a column with its children underneath.
Community
Solutions
<script setup>
const links = [{
label: 'Community',
children: [{
label: 'Nuxters',
to: 'https://nuxters.nuxt.com',
target: '_blank'
}, {
label: 'Video Courses',
to: 'https://masteringnuxt.com/nuxt3?ref=nuxt',
target: '_blank'
}, {
label: 'Nuxt on GitHub',
to: 'https://github.com/nuxt',
target: '_blank'
}]
}, {
label: 'Solutions',
children: [{
label: 'Nuxt Content',
to: 'https://content.nuxt.com/',
target: '_blank'
}, {
label: 'Nuxt DevTools',
to: 'https://devtools.nuxt.com/',
target: '_blank'
}, {
label: 'Nuxt Image',
to: 'https://image.nuxt.com/',
target: '_blank'
}, {
label: 'Nuxt UI',
to: 'https://ui.nuxt.com/',
target: '_blank'
}]
}]
</script>
<template>
<UFooterColumns :links="links">
<template #right>
<UFormGroup name="email" label="Subscribe to our newsletter" size="lg">
<UInput type="email" :ui="{ icon: { trailing: { pointer: '' } } }">
<template #trailing>
<UButton type="submit" size="2xs" color="black" label="Subscribe" />
</template>
</UInput>
</UFormGroup>
</template>
</UFooterColumns>
</template>
The FooterColumns
component is meant to be used in the #top
slot of the Footer
.
AppFooter.vue
<template>
<UFooter>
<template #top>
<UFooterColumns :links="links" />
</template>
</UFooter>
</template>
Slots
left
{}
right
{}
Props
ui
{}
{}
links
Link[]
[]