Hyperparameter tuning with cross-validation

Hi, I am able to manually setup Cross Validation as well as Hyper-Parameter Tuning using Optuna separately but I am have difficulty figuring out how to perform HPO with CV. Any help is appreciated. Thanks