Hey @Ayhaner — welcome to the Retool community!
Retool has a Switch component that you can use for this. Here's an example of it in action.
In your design, it looks like the label text is meant to be dynamic depending on the value of the switch. You can use this code in the label property of the switch to do the same thing in Retool:
{{self.value ? 'On' : 'Off'}}