- **See Also**: [Passing props to Route Components](../guide/essentials/passing-props.md)
+### sensitive
+- **Type**: `boolean` (Optional)
+- **Details**:
+
+ Makes the route matching case sensitive, defaults to `false`. Note this can also be set at a route level.
+
+### strict
+- **Type**: `boolean` (Optional)
+- **Details**:
+
+ Strictly checks the presence or absence of a trailing slash (`/`) at the end of the path. Defaults to `false` meaning that by default a route `/users` matches both `/users` and `/users/`. Note this can also be set at a route level.
+
### meta
- **Type**: [`RouteMeta`](#routemeta) (Optional)
]
```
+## Sensitive and strict route options
+
+By default, all routes are case-insensitive and match routes with or without a trailing slash. e.g. a route `/users` matches `/users`, `/users/`, and even `/Users/`. This behavior can be configured with the `strict` and `sensitive` options, they can be set both at a router and route level:
+
+```js
+const router = createRouter({
+ history: createWebHistory(),
+ routes: [
+ // will match /users/posva but not:
+ // - /users/posva/ because of strict: true
+ // - /Users/posva because of sensitive: true
+ { path: '/users/:id', sensitive: true },
+ // will match /users, /Users, and /users/42 but not /users/ or /users/42/
+ { path: '/users/:id?' },
+ ]
+ strict: true, // applies to all routes
+})
+```
+
## Optional parameters
You can also mark a parameter as optional by using the `?` modifier (0 or 1):