Use Toggle by useRef in V6

In Framework v5 I used Toggle like this

const toggleRef = React.useRef<F7Toggle>();

But now toggle() is undefined.
Should I refactor it with using React.useState() or there is still way to call .toggle() ?
In documentation Toggle React Component | Framework7 React Documentation this method exist, but how use It?

I found soultion.
Now to use .toggle() method i have to call:

My bad. I didn’t undestand F7 types correctly at first.
Ref type:
ref?: React.MutableRefObject<{el: HTMLElement | null; f7Toggle: () => Toggle.Toggle;}>;
Means that I should call toggleRef.current? .f7Toggle()?.toggle()