Whose specific UI guideline are you talking about? Android's recommends the switch component for setting toggles: https://m3.material.io/components/switch/overview