Default
Generate a switch element easily with beautiful animations and functionality
Generate a switch element easily with beautiful animations and functionality
Change the color of the component when it is in active state, the allowed values are (main colors of Sax Design, RGB, HEX)
Add a text to the switch with the default slot or if you need a different text for each state of the component you can use the on or off slots
The component conforms to the text to be displayed by the state in which it is located
Add icons to the component in the default slot or the on or off status slots, and in the circle
Add a loading animation to the component with the loading property, the property is a boolean so you can add it without any value.
Add an undetermined state to the compound with the indeterminate property, the property is a boolean so you can add it without any value.
Change the circular style to square with the square property, the property is a boolean so you can add it without any value.
A usual example when using the switch component