In Framer it is not possible to add an override as soon useSwitch is used. In the override panel the file is not selected anymore and it is not in the dropdown.
Without the const controls = useSwitch() line of code, it works and you can choose the override as expected in the panel.
I also tried to import the switch package from the import wizard but this will not work, no import button available.
The Code
import { Override } from "framer"
import { useSwitch } from "@framer/tishogeorgiev.switch/code"
export function SwitchSwiper(): Override {
const controls = useSwitch()
var startPointX = 0
In Framer it is not possible to add an override as soon useSwitch is used. In the override panel the file is not selected anymore and it is not in the dropdown.
Without the
const controls = useSwitch()
line of code, it works and you can choose the override as expected in the panel.I also tried to import the switch package from the import wizard but this will not work, no import button available.
The Code