Breadcrumb
Breadcrumb (브레드크럼)
Breadcrumb는 현재 페이지의 위치를 표시하고, 기록된 이전 페이지로 빠르게 돌아갈 수 있게 도와주는 내비게이션(Navigation) 컴포넌트예요.
출처: 문서
본문
API
Breadcrumb
| 속성 | 설명 | 타입 | 기본값 |
|---|---|---|---|
| maxCount | 표시할 Breadcrumb.Item의 최대 개수 |
number | - |
| separator | 구분 기호를 커스터마이즈해요 | string | ReactNode | <IconObliqueLine /> |
| className | 추가 css 클래스 | string | string[] | - |
| routes | 드롭다운 메뉴를 설정해요 | RouteProps[] | - |
| style | 추가 스타일 | CSSProperties | - |
| itemRender | Breadcrumb.Item의 렌더 함수를 커스터마이즈해요 |
(route: RouteProps, routes: RouteProps[], paths: string[]) => ReactNode | - |
Breadcrumb.Item
| 속성 | 설명 | 타입 | 기본값 | 버전 |
|---|---|---|---|---|
| href | href | string | - |
2.40.0 |
| droplist | 드롭다운 메뉴 | DropdownProps['droplist'] | - |
- |
| className | 추가 css 클래스 | string | string[] | - |
- |
| dropdownProps | 드롭다운 props예요 DropdownProps | DropdownProps | - |
- |
| style | 추가 스타일 | CSSProperties | - |
- |
| tagName | 가장 바깥쪽 태그를 설정해요. html 태그나 컴포넌트를 지정할 수 있어요 | string | React.FC<any> | React.ComponentClass<any> | div |
2.40.0 |
| onClick | 클릭 콜백 | (e: any) => void | - |
2.40.0 |
RouteProps
export interface RouteProps {
path: string;
breadcrumbName: string;
children?: Array<{
path: string;
breadcrumbName: string;
}>;
}
더 알아보기 (Learn more)
Breadcrumb 컴포넌트의 더 자세한 내용은 Arco Design 공식 문서에서 확인할 수 있어요.