You can customize how routes appear in the command palette using definePageMeta:
<script setup>
definePageMeta({
search: false
})
</script>
<script setup>
definePageMeta({
search: {
label: 'User Profile',
icon: 'i-lucide-user'
}
})
</script>
Admin routes are automatically filtered based on user role:
<script setup>
definePageMeta({
isAdminOnly: true
})
</script>
useSearchableRoutes composable scans all routes from Vue Routerlayout: 'blank')search.labeli-lucide-file or use custom search.iconThe following types of routes are automatically excluded from search:
search: falselayout: 'blank'): in the path)If no search.label is provided, labels are auto-generated from the route path:
/app/billing → "Billing"/app/account-settings/profile → "Account Settings / Profile"/admin/users → "Users"Nested routes use "/" as separator to show hierarchy.
All routes use i-lucide-file as the default icon unless a custom search.icon is provided.
Routes are grouped in the command palette as:
/admin (only visible to admin users)