Is there a way to add input field in nav element using React FluentUI (@fluentui/react)?

962 views Asked by At

The examples on website show many examples of navbars with links. Image of navbar demo as shown on website.

I want to implement a search bar inside the nav element like this. Is there a way to do it?

1

There are 1 answers

2
ZeZe On BEST ANSWER

I would try with OnRenderLink or linkAs methods.

onRenderLink: Used to customize how content inside the link tag is rendered

linkAs: Render a custom link in place of the normal one. This replaces the entire button rather than simply button content

Source: INavProps interface https://developer.microsoft.com/en-us/fluentui#/controls/web/nav