부품 머리글·바닥글
바닥글 site-footer
한국 사이트 바닥글. 상호·대표·사업자등록번호·주소·연락처 표기, 메뉴 묶음, 개인정보처리방침 줄. 짙은 띠(inverse) 위에 놓인다.
설치
shadcn/ui 를 쓰는 Next.js 프로젝트에서 한 줄로 설치됩니다. 파일은 components/bpublish/site-footer.tsx 로 들어오고, 공통 토큰(base)도 같이 설치됩니다. 테마는 테마에서 하나 고릅니다.
npx shadcn@latest add https://www.bpublish.com/r/site-footer.json레지스트리를 등록했다면 npx shadcn@latest add @bpublish/site-footer · 설치 안내
AI에게 맡기기
Claude Code, Cursor 같은 AI 코딩 도구에 붙여 넣으세요. MCP 서버를 연결해 두면 이름만 말해도 됩니다.
bpublish UI의 바닥글(site-footer) 부품으로 만들어 줘. 설치: npx shadcn@latest add https://www.bpublish.com/r/site-footer.json · 문서: https://www.bpublish.com/designs/components/site-footer사용 예시
import { SiteFooter } from '@/components/bpublish/site-footer'
export default function Example() {
return (
<SiteFooter
name="한결정밀"
tagline="반도체·2차전지·의료기기 정밀 부품 가공, 1998년부터."
business={[
{ label: '상호', value: '(주)한결정밀' },
{ label: '대표이사', value: '홍길동' },
{ label: '사업자등록번호', value: '000-00-00000' },
{ label: '주소', value: '경기도 화성시 동탄산단 00길 00' },
{ label: 'TEL', value: '031-000-0000' },
{ label: 'FAX', value: '031-000-0001' },
{ label: 'E-mail', value: 'sales@hangyeol.example' },
]}
groups={[
{ title: '사업 분야', links: [{ label: '반도체 장비 부품', href: '#' }, { label: '2차전지 설비', href: '#' }, { label: '의료기기 부품', href: '#' }] },
{ title: '회사', links: [{ label: '회사소개', href: '#' }, { label: '제품', href: '#' }, { label: '품질·인증', href: '#' }, { label: '견적 문의', href: '#' }] },
]}
legal={[{ label: '개인정보처리방침', href: '#' }, { label: '이용약관', href: '#' }, { label: '이메일무단수집거부', href: '#' }]}
copyright="© 2026 HANGYEOL PRECISION. All rights reserved."
/>
)
}속성
| 이름 | 형식 | 기본값 | 설명 |
|---|---|---|---|
name필수 | string | — | 회사·가게 이름 (로고 자리) |
logo | ReactNode | — | 로고 그림. 없으면 name 을 제목체로 |
tagline | string | — | 한 줄 소개 |
business필수 | { label: string; value: string }[] | — | 사업자 정보 (상호, 대표, 사업자등록번호, 주소, 전화 …) |
groups | { title: string; links: { label; href }[] }[] | — | 메뉴 묶음 |
legal | { label: string; href: string }[] | — | 아래 줄 링크. 첫 번째는 굵게(개인정보처리방침) |
copyright | string | — | 저작권 줄 |
원본 코드
설치 명령 없이 그대로 복사해 넣어도 됩니다. React 외의 패키지는 쓰지 않습니다.
/**
* bpublish UI — 바닥글. https://www.bpublish.com/designs/components/site-footer
* 한국 사이트 바닥글: 상호·대표·사업자등록번호·주소·연락처(전자상거래법 표기)와 메뉴 묶음, 약관 줄.
*/
import type { ReactNode } from 'react'
export type FooterLink = { label: string; href: string }
export type SiteFooterProps = {
/** 바닥글 맨 위 이름(로고 자리). 로고 그림이 있으면 logo 로 넘긴다 */
name: string
logo?: ReactNode
/** 한 줄 소개 */
tagline?: string
/** 사업자 정보. 순서대로 「항목 값」으로 적힌다 */
business: { label: string; value: string }[]
/** 메뉴 묶음 (최대 3묶음이 보기 좋다) */
groups?: { title: string; links: FooterLink[] }[]
/** 아래 줄 링크. 첫 번째(개인정보처리방침)는 굵게 */
legal?: FooterLink[]
/** 저작권 줄. 없으면 「© 이름. All rights reserved.」 — 연도는 서버 렌더 시각에 기대지 않게 직접 적는다 */
copyright?: string
className?: string
}
export function SiteFooter({ name, logo, tagline, business, groups = [], legal = [], copyright, className = '' }: SiteFooterProps) {
return (
<footer className={`bg-inverse text-inverse-muted ${className}`}>
<div className="shell py-14 md:py-16">
<div className="flex flex-col gap-12 lg:flex-row lg:justify-between">
<div className="max-w-xl">
<div className="text-inverse-foreground">{logo ?? <p className="heading text-xl">{name}</p>}</div>
{tagline ? <p className="mt-3 text-sm leading-6">{tagline}</p> : null}
<dl className="mt-6 flex flex-wrap gap-x-4 gap-y-1.5 text-[13px] leading-6">
{business.map((b) => (
<div key={b.label} className="flex gap-1.5">
<dt className="opacity-70">{b.label}</dt>
<dd className="tabular-nums">{b.value}</dd>
</div>
))}
</dl>
</div>
{groups.length ? (
<nav aria-label="바닥글 메뉴" className="grid grid-cols-2 gap-10 text-sm sm:grid-cols-3 sm:gap-16">
{groups.map((g) => (
<div key={g.title}>
<p className="font-semibold text-inverse-foreground">{g.title}</p>
<ul className="mt-4 space-y-2.5">
{g.links.map((l) => (
<li key={l.label}>
<a href={l.href} className="transition-colors hover:text-inverse-foreground">
{l.label}
</a>
</li>
))}
</ul>
</div>
))}
</nav>
) : null}
</div>
<div className="mt-12 flex flex-col gap-3 border-t border-inverse-border pt-6 text-xs md:flex-row md:items-center md:justify-between">
<ul className="flex flex-wrap gap-x-5 gap-y-2">
{legal.map((l, i) => (
<li key={l.label}>
<a href={l.href} className={i === 0 ? 'font-semibold text-inverse-foreground' : 'transition-colors hover:text-inverse-foreground'}>
{l.label}
</a>
</li>
))}
</ul>
<p>{copyright ?? `© ${name}. All rights reserved.`}</p>
</div>
</div>
</footer>
)
}