But when the toggle is moved towards Yes, it becomes No – with a tick and a black circle – which is confusing. How come one state, No, gets a tick but Yes doesn’t?
Text: Sets the text next to the toggle. The text can be a string or an array of two options. The first one is the negative text and the second one the positive. The text will automatically switch when the toggle is triggered.
Why don’t you use radio buttons or a checkbox if you are not happy with the toggle? Toggles usually do not have two labels. Or instead of false/true, use a label that explains what the toggle does, e.g. “Show in homepage?”
Perhaps it’s just me, but just by looking at the toggle I can’t tell what state this is:
It looks like the toggle has to be moved to the right / towards ‘No’ to select No. I think this forces the user to interact with the toggle before it becomes clear what it is showing.
Move the toggle towards No and it is clear that the info will be displayed:
I tried radio buttons and checkboxes, but these fields allow a ‘third option’ of no button or checkbox being selected. In my particular use case toggle is the most appropriate because it has to be one or the other.