Add code samples to the NavBar API reference