Installation
Run this in a project that already uses shadcn/ui. The CLI adds the block, its components and npm dependencies.
pnpm dlx shadcn@latest add https://ui.sumansharma.info.np/r/footer-4.jsonPrefer to iterate with AI?Open in
Usage
The CLI writes the block to components/footer.tsx. Import it anywhere:
Loading...
Source
The CLI writes this component to components/footer.tsx.
import Link from 'next/link'
const links = [
{
title: 'Features',
href: '#',
},
{
title: 'Solution',
href: '#',
},
{
title: 'Customers',
href: '#',
},
{
title: 'Pricing',
href: '#',
},
{
title: 'Help',
href: '#',
},
{
title: 'About',
href: '#',
},
]
export default function FooterSection() {
return (
<footer className="border-b bg-white py-12 dark:bg-transparent">
<div className="mx-auto max-w-5xl px-6">
<div className="flex flex-wrap justify-between gap-6">
<span className="text-muted-foreground order-last block text-center text-sm md:order-first">© {new Date().getFullYear()} Lyra, All rights reserved</span>
<div className="order-first flex flex-wrap justify-center gap-6 text-sm md:order-last">
{links.map((link, index) => (
<Link
key={index}
href={link.href}
className="text-muted-foreground hover:text-primary block duration-150">
<span>{link.title}</span>
</Link>
))}
</div>
</div>
</div>
</footer>
)
}