Camera preview border in ionic/react

hello, im working on app in ionic/react.
I want to show a guide/border in the camera preview, so only the content within the guide/border is captured.
is there any solution or Ionic API that has this functionality?
i added an image to show example of the camera preview border