Search Bar

I have designed my Home and search bar animation. but i cannot link both. Can anyone please me.

Create an interactive component and place an instance of it in your frame.

i have trouble when i use it when selected a piece of frame not whole, i just search piece of a document.