Html
Jump links는 페이지의 특정 섹션으로 빠르게 이동할 수 있는 HTML 내비게이션 컴포넌트예요. 가로/세로, 라벨, 펼칠 수 있는(expandable) 변형을 지원해요.
출처: 문서
본문
예제 (Examples)
가로 기본 (Horizontal default)
중앙 정렬 목록이 있는 가로 (Horizontal with centered list)
라벨이 있는 가로 (Horizontal with label)
Jump to horizontal with label example sections one
Jump to horizontal with label example sections two
세로 기본 (Vertical default)
라벨이 있는 세로 (Vertical with label)
Jump to vertical with label example sections
비활성 하위 섹션이 있는 세로 (Vertical with inactive subsections)
Jump to vertical with inactive subsections example sections
활성 하위 섹션이 있는 세로 (Vertical with active subsections)
Jump to vertical with active subsections example sections
펼칠 수 있는 (Expandable)
Jump to expandable example sections
펼쳐진 상태 (Expanded)
Jump to expanded example sections
펼칠 수 있는 (반응형) (Expandable (responsive))
Jump to expandable responsive example sections
펼칠 수 있는 (반응형) + 라벨 없음 (Expandable (responsive) with no label)
문서 (Documentation)
개요 (Overview)
접근성 (Accessibility)
| Attribute | Applied to | Outcome |
|---|---|---|
aria-label |
.pf-v6-c-jump-links |
점프 링크에 접근 가능한 이름을 제공해요. |
사용법 (Usage)
| Class | Applied to | Outcome |
|---|---|---|
.pf-v6-c-jump-links |
<nav> |
점프 링크 컨테이너를 시작해요. |
.pf-v6-c-jump-links__header |
<div> |
점프 링크 헤더를 시작해요. |
.pf-v6-c-jump-links__toggle |
<button> |
점프 링크 펼침 토글을 시작해요. |
.pf-v6-c-jump-links__toggle-text |
<span> |
점프 링크 펼침 토글 텍스트를 시작해요. |
.pf-v6-c-jump-links__toggle-icon |
<span> |
점프 링크 펼침 토글 아이콘을 시작해요. |
.pf-v6-c-jump-links__label |
<a> |
점프 링크 라벨을 시작해요. |
.pf-v6-c-jump-links__main |
<div> |
가로 변형에서 라벨과 목록을 함께 쓸 때 점프 링크 메인 컨테이너를 시작해요. |
.pf-v6-c-jump-links__list |
<ul> |
점프 링크 목록을 시작해요. |
.pf-v6-c-jump-links__item |
<li> |
점프 링크 목록 항목을 시작해요. |
.pf-v6-c-jump-links__link |
<a> |
점프 링크를 시작해요. |
.pf-v6-c-jump-links__link-text |
<span> |
점프 링크 텍스트를 시작해요. |
.pf-m-vertical |
.pf-v6-c-jump-links |
점프 링크 컴포넌트를 세로로 수정해요. |
.pf-m-center |
.pf-v6-c-jump-links |
점프 링크 컴포넌트의 목록과 라벨을 중앙 정렬하도록 수정해요. |
.pf-m-expandable{-on-[breakpoint]} |
.pf-v6-c-jump-links |
선택적 breakpoint에서 토글을 통해 펼칠 수 있도록 점프 링크 컴포넌트를 수정해요. 참고: 세로 점프 링크에서만 동작해요. |
.pf-m-non-expandable{-on-[breakpoint]} |
.pf-v6-c-jump-links |
선택적 breakpoint에서 펼칠 수 없도록 점프 링크 컴포넌트를 수정해요. |
.pf-m-expanded |
.pf-v6-c-jump-links |
펼칠 수 있는 점프 링크 컴포넌트를 펼쳐진 상태로 수정해요. |
.pf-m-current |
.pf-v6-c-jump-links__item |
점프 링크 항목을 현재 상태로 수정해요. |