# Toggle (fw-toggle)

fw-toggle displays an input control that enables modifying an element’s state between two settings.

# Usage

Small not selected

Mid-sized and selected
Show Code

# Properties

Property Attribute Description Type Default
checked checked Sets the selected state as the default state. If the attribute’s value is undefined, the value is set to false. boolean false
disabled disabled Specifies whether to disable the control on the interface. If the attribute’s value is undefined, the value is set to false. boolean false
name name Name of the component, saved as part of the form data. string ''
size size Size of the input control. "large" or "medium" or "small" 'medium'

# Events

Event Description Type
fwChange Triggered when the input control is selected or deselected. CustomEvent<any>

Built with ❤ at Freshworks

Last Updated: 5/8/2020, 6:45:54 AM