Header Brand Logo
uifoundry/header-brand-logoUnverifiedBlock
Customizable brand logo component for headers
Install it
npx shadcn@latest add https://raw.githubusercontent.com/UIFoundry/uifoundry/master/header-brand-logo.jsonSource
1import Link from "next/link";2import Image from "next/image";3import { cn } from "@/registry/default/utils";45// Registry components use generic types instead of generated types6interface HeaderBrandLogoBlock {7 href: string;8 media?: {9 url: string;10 alt: string;11 };12 alignment?: string;13}1415interface Media {16 url: string;17 alt: string;18}1920export * from "./config";2122export default function HeaderBrandLogo({23 mobileView = false,24 href = "",25 media,26}: { mobileView?: boolean } & HeaderBrandLogoBlock) {27 if (!media) return <></>;28 return (29 <Link30 href={href}31 className={cn("cursor-pointer", mobileView === true && "hidden")}32 >33 {media ? (34 <Image src={(media as Media).url!} fill alt={(media as Media).alt} />35 ) : (36 ""37 )}38 </Link>39 );40}
What it pulls in
npm packages
Other registry items
Files it writes
More from uifoundry
All 54 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Color Fieldcolor-field | uifoundry | Blocks | Unverified | 4 deps · 2 files | |
| Coming Soon 1coming-soon-1 | uifoundry | Blocks | Unverified | 3 deps · 2 files | |
| CTA 1cta-1 | uifoundry | Blocks | Unverified | 3 deps · 2 files | |
| CTA 2cta-2 | uifoundry | Blocks | Unverified | 3 deps · 2 files | |
| CTA 3cta-3 | uifoundry | Blocks | Unverified | 3 deps · 2 files | |
| Custom Headercustom-header | uifoundry | Blocks | Unverified | 4 deps · 3 files | |
| Features 1features-1 | uifoundry | Blocks | Unverified | 3 deps · 2 files | |
| Features 2features-2 | uifoundry | Blocks | Unverified | 4 deps · 2 files |
