Deselect one button one selecting the other

Can we deselect one button one selecting the other using one component?