Navigation Menu
Navigation Menu는 화면 상단에 놓이는 서비스의 주 메뉴입니다. 주로 서비스의 큰 기능 영역 사이를 이동할 때 사용됩니다. 하위 메뉴가 있는 항목은 누르면 아래로 펼쳐지고, 현재 위치한 메뉴는 강조되어 사용자가 어디에 있는지 알 수 있습니다.
State
Code
vue
<script setup>
import { ref } from 'vue'
import { ANavigationMenu } from '@mobigen/rnd-design-system'
const current = ref('dashboard')
const items = [
{ label: '대시보드', value: 'dashboard' },
{ label: '데이터 검색', value: 'data-search' },
{
label: '탐색',
children: [
{ label: '주제 탐색', value: 'topics' },
{ label: '관계 탐색', value: 'relations' }
]
},
{ label: '관리', value: 'admin', disabled: true }
]
</script>
<template>
<ANavigationMenu v-model="current" :items="items" aria-label="주 메뉴" />
</template>Props
| 속성 | 값 |
|---|---|
items | Array (필수) |
modelValue | String |
ariaLabel | String |
menuWidth | String |
Events
| 이벤트 | 전달 값 |
|---|---|
update:modelValue | String |
select | 항목 객체 |
Notes
- 라우터와 연동하지 않는다. 화면 전환은
href나v-model·select를 받아 사용하는 쪽에서 처리한다.