You simply need to set
searchBarOpen.value = true
(or false)
The value property in Vue refs is needed for reactivity internally.
In templates however, your reference to searchBarOpen is correct without value, because the value property will be unwrapped under the hood.