Installation
Run the following command
npx vibes@latest add footer
Usage
import { Footer } from '@/vibes/soul/sections/footer';function Usage() { return ( <Footer contactInformation={contactInformation} logo={logo} sections={sections} /> );}export const sections = [ { title: 'Help & Support', links: [ { label: 'FAQs', href: '#' }, { label: 'Contact Us', href: '#' }, { label: 'Returns', href: '#' }, { label: 'Shipping', href: '#' }, ], },];export const logo = 'SOUL';export const contactInformation = { address: 'info@soul.com', phone: '+(1) 408 123 4567',};
API Reference
Prop | Type | Default |
---|
logo*
| | |
sections*
| | |
copyright
| | |
contactInformation
| | |
paymentIcons
| | |
socialMediaLinks
| | |
contactTitle
| string
| |
className
| string
| |
logoHref
| string
| |
logoLabel
| string
| |
logoWidth
| number
| |
logoHeight
| number
| |
Section
Prop | Type | Default |
---|
title
| string
| |
links*
| | |
Link
Prop | Type | Default |
---|
label*
| string
| |
href*
| string
| |
Prop | Type | Default |
---|
address
| string
| |
phone
| string
| |
Prop | Type | Default |
---|
icon*
| ReactNode
| |
href*
| string
| |
Image
Prop | Type | Default |
---|
src*
| string
| |
alt*
| string
| |
CSS Variables
This component supports various CSS variables for theming. Here's a comprehensive list.
:root { --footer-focus: var(--primary); --footer-background: var(--background); --footer-border-top: var(--contrast-100); --footer-border-bottom: var(--primary); --footer-contact-title: var(--contrast-500); --footer-contact-text: var(--foreground); --footer-social-icon: var(--contrast-400); --footer-social-icon-hover: var(--foreground); --footer-section-title: var(--foreground); --footer-link: var(--contrast-500); --footer-link-hover: var(--foreground); --footer-copyright: var(--contrast-500);}