Switch

An uxiverse.com type

A Switch is a UI element to let users toggle between two states or on-off settings. Users are used to seeing a reaction to clicking the switch immediately, based on their experience on mobile devices. Useful to control Boolean types.

PropertyExpected TypeDescription
ariaLabelhttps://schema.org/TextAn ARIA label is an accessibility feature that helps visually impaired users understand and use a UI control. Blind users use screen readers to navigate User Interfaces, so concise, readable text helps users navigate the application.
backgroundUIElementContent of the background of the element
boldhttps://schema.org/TextBold text is used to add significance to a text element
colorThe color used to express a meaningful relation in the content
fonthttps://schema.org/TextThe font used to express a meaningful relation in the content
highlightUIElementA form of highlighting an element in relation to others
importanceIssueSeverityTypeImportance is a property on an UI Element to order elements toward the user. The order expresses a fixed significance over other elements. When issues happen in the application, Error notifications should get highest importance, followed by Warnings, and Alerts.
inputRangeThe input range defines the type(s) of data which a uxi:UIElement can consume. This can be used to choose UIElements automatically. E.g. in the case of a date picker this could be https://schema.org/Date or https://schema.org/DateTime. For the (sub-)uxi:UIElement for selecting a year inside that date picker, a uxi:UIPropertyValueSpecification could be used to narrow down the selection. Also useful for converting, sending or receiving data.
inputTriggerValidatorValidatorThe input trigger validator can be used with side-effect handlers, so that they only trigger when the input is valid.
isHiddenA hierarchy flag to toggle the visibility of an UI Element. If you want to transition between visibility states, you can use opacity for fading, size for shrinking and growing, or 3D transformations for flipping. Transitions tell the user what happened to an element, when hiding the user should be shown how to un-hide.
Types with close relationship to "Switch":