How to navigate a record page from an LWC component?

Make sure you have imported NavigationMixin adapter required for this feature.

Make sure your component extends the NavigationMixin base class so as to access its feature from your LWC code.

Add a function that you can call from a clickable element which will use the Navigate API of this adapter to launch a target record page view. Target record here is specified using resultId (variable defined for – target record ID to open).