# Function NavLink

- NavLink(props): ReactElement<any, string | JSXElementConstructor<any>>

- A `<Link>` wrapper that knows if it's "active" or not.

  #### Parameters

  - props: NavLinkProps & RefAttributes<HTMLAnchorElement>

  #### Returns ReactElement<any, string | JSXElementConstructor<any>>

  - Defined in common/temp/node_modules/.pnpm/react-router-dom@6.23.1_react-dom@18.3.1+react@18.3.1/node_modules/react-router-dom/dist/index.d.ts:122

#####
Index

### Properties

$$typeof
defaultProps?
displayName?
propTypes?

## Properties

### `Readonly` $$typeof

$$typeof: symbol

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/ts5.0/index.d.ts:637

### `Optional` defaultProps

defaultProps?: Partial<NavLinkProps & RefAttributes<HTMLAnchorElement>>

#### Deprecated

Use values for destructuring assignments instead.

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/ts5.0/index.d.ts:1569

### `Optional` displayName

displayName?: string

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.

#### See

Legacy React Docs

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/ts5.0/index.d.ts:653

### `Optional` propTypes

propTypes?: WeakValidationMap<NavLinkProps & RefAttributes<HTMLAnchorElement>>

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/ts5.0/index.d.ts:1570