# NeoSwitch **Description:** `NeoSwitch` is a custom widget that acts as a switch or toggle button. --- **UI States:**  ## Parameters | Parameter Name | Type | Is Required | Description | Default Value | | -------------- | ----------------------- | ----------- | --------------------------------------- | ------------------------- | | dataKey | String | Yes | Key to identify the switch data | - | | initialValue | bool | No | Initial value of the switch | false | | padding | EdgeInsetsDirectional | No | Padding around the switch | EdgeInsetsDirectional.zero| --- ## Example Response ```json { "type": "neo_switch", "args": { "dataKey": "switch_key", "initialValue": true, "padding": 10 } }
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up