Skip to content

Latest commit

 

History

History
77 lines (67 loc) · 3.04 KB

switch-widget.md

File metadata and controls

77 lines (67 loc) · 3.04 KB

Switch Widget

Switch widget is used to create a toggle switch that allows users to toggle between two states: on and off. It's commonly used to represent binary options such as enabling/disabling a feature or setting.

Switch

Switch

To integrate a Switch Widget into your UI, follow these steps:

1. Drag the Switch widget from the Insert menu and drop it into your desired location within your UI.

2. Customize the appearance and behavior of the Switch by adjusting its properties in the editing section on the right. You can modify properties such as color, size, and shape to match your UI design. Change the color according to your needs by adjusting the activeColor and inactiveTrackColor properties.

Components of Switch Widget

Component Description
Align Icons Click icons or use shortcut keys to align Switch Widget. For example, click "Align Left" or use Ctrl+Shift+Left to left-align Switch Widget.
Postitions Set Switch Widget positions on the X and Y axis of the mobile canvas.
Margin Adjust Switch Widget margin from top, bottom, left, or right by specifying margin values.
Swtich value Make the Switch on and off by marking the checkbox.
Thumb Color It will give color to the round thumb inside the Switch Widget.
Focus Color Give it a color according to your need when switch is Focused
Hover Color Give it a color according to your need when the user hovers a cursor on the Switch; it will change color.
Active Color This will give the color to your track of Switch when it is active.
Inactive Track Color This will give the color to your track of Switch when it is inactive.
Inactive Thumb Color This will give the color to your thumb of Switch when it is inactive.
Visible By checking the checkbox the entire selected Switch widget will be hidden.

If you have any ideas to make Blup better you can share them through our Discord community channel

Music to go with.

{% tab title="Music" %} {% embed url="https://open.spotify.com/playlist/0vvXsWCC9xrXsKd4FyS8kM?si=2c7f55bd3f944878" %} Lofi music {% endembed %} {% endtab %} {% endtabs %}