Help <esp_wifi.h> library

I am trying to use <esp_wifi.h> library instead of <WiFi.h> in esp32 .But i am not finding any example or any other material to use it as example to use this library in arduino .How to use this library in arduino .Do you have any examples that i can refer on

I'm not quite sure why you would use the ESP-IDF SDK APIs within the Arduino framework.
This raises the question: why not use ESP-IDF directly as your development environment instead of mixing the two platforms?

ESP-IDF provides plenty of examples on how to work with WiFi.

Yeah ,Can we use libraries in Arduino in Esp_idf

You can use esp-idf libraries directly. I have in some of my projects. I don't use both the Arduino wrapper that uses the esp-idf library and the esp-idf library directly though. I use one or the other.

by the way which one is better platform to code esp32 esp_idf or Arduino

That's up to you. Which ever one you know and use.