---
url: "https://vueda.dev/v3/reference/api/js/use/useRouteProps/functions/useRouteProps.md"
title: "useRouteProps"
---

# useRouteProps

## Overview

Returns a computed ref containing the resolved props for the first matched route.
Supports both object and function prop definitions.

## Signature

`useRouteProps()`

### Returns

`ComputedRef`

A computed ref of the resolved route props.

## Source

`client/lib/use/useRouteProps.js:15`
