# Φ SwitchCtrl

Primitive: A singular control switch with its possible status (on/off) and states.

[Styleguide Link](https://zpl.io/bLvqy06)

* Parent: [Switch](https://able.bucca.com/core/components/form/switch) (Form Component), Multiple others
* Child: [SwitchShape](https://able.bucca.com/core/overview/switch/switch-shape)

### Properties

**Status** - The value given to the screen object, in this case a switch with possibilities of On or Off.

<figure><img src="https://217329376-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXJWCEk7b7vvAFeWpr2%2Fuploads%2FhRflutuWZNXdQGUaYKkt%2FStatus.png?alt=media&#x26;token=d607f0ec-c9ed-4818-9cc9-8df54bc2f06e" alt=""><figcaption></figcaption></figure>

**Style** - Supplied by the child level (Base - Shape) this is the general appearance of the screen object. For now we only have the base style you'd normally see a switch, and a rectangular option which is our customized appearance for a switch. Note: Additional appearance can be added to the Base - Shape file to extend the styles at this level.

<figure><img src="https://217329376-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXJWCEk7b7vvAFeWpr2%2Fuploads%2FmwjaLHfVAwaybb62dDeR%2FStyles.png?alt=media&#x26;token=8033cae8-6b24-434e-9315-0503bf28d1bf" alt=""><figcaption></figcaption></figure>

**State** - The different appearances of the screen object based on interaction and the status of the screen object. Possible states are Enabled, Disabled, Focus, Hover, Pressed.

<figure><img src="https://217329376-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXJWCEk7b7vvAFeWpr2%2Fuploads%2FaTLvdlZh4DuFGpGocTYu%2FStates.png?alt=media&#x26;token=102706b4-9654-4bbf-bdcb-0579ff0190d7" alt=""><figcaption></figcaption></figure>

### Interaction

**Hitarea** - It's important to understand that the tappable/clickable area of the screen object being displayed may be small in appearance than the actual area you can interact with. This hitarea will normally be based off the parents container for this primitive.
