Copyright line with legal links.
© 2026 VibeUI · MIT License
npx @agents-npm-packages/vibeui add footer-legal --dir ./src/components/uiImport
import { FooterLegal } from "@/components/ui/footer-legal"Generated from the component's TypeScript types, so it always matches the source. * marks a required prop.
| Prop | Type | Default | Description |
|---|---|---|---|
| copyright* | string | — | Copyright text. |
| links* | { label: string; href: string; }[] | — | Array of { label, href } links. |
| className | string | — | Extra classes, merged with the component's own. |
import { cn } from "@/lib/utils";
/** Copyright line with legal links. */
export function FooterLegal({
copyright,
links,
className,
}: {
copyright: string;
links: { label: string; href: string }[];
className?: string;
}) {
return (
<div
className={cn(
"flex flex-col gap-3 border-t border-line py-5 text-xs text-faint sm:flex-row sm:items-center sm:justify-between",
className,
)}
>
<p>{copyright}</p>
<nav aria-label="Legal" className="flex flex-wrap gap-5">
{links.map((l) => (
<a
key={l.href + l.label}
href={l.href}
className="transition-colors hover:text-ink"
>
{l.label}
</a>
))}
</nav>
</div>
);
}
Exports FooterLegal. Peer dependencies: clsx, tailwind-merge.