Breadcrumb
현재 위치를 표시하는 브레드크럼 컴포넌트입니다.
개요
Breadcrumb은 사용자의 현재 위치를 계층적으로 표시하는 네비게이션 컴포넌트입니다.
설치
npx @vortex/cli add breadcrumb --package foundation기본 사용법
import {
Breadcrumb,
BreadcrumbList,
BreadcrumbItem,
BreadcrumbLink,
BreadcrumbSeparator,
} from "@vortex/ui-foundation";
export default function Example() {
return (
<Breadcrumb>
<BreadcrumbList>
<BreadcrumbItem>
<BreadcrumbLink href="/">Home</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbSeparator />
<BreadcrumbItem>
<BreadcrumbLink href="/products">Products</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbSeparator />
<BreadcrumbItem>
<span>Detail</span>
</BreadcrumbItem>
</BreadcrumbList>
</Breadcrumb>
);
}Last updated on