UseSwitchParameters

external interface UseSwitchParameters(source)

Properties

Link copied to clipboard
abstract external var checked: Boolean?

If true, the component is checked.

Link copied to clipboard
abstract external var defaultChecked: Boolean?

The default checked state. Use when the component is not controlled.

Link copied to clipboard
abstract external var disabled: Boolean?

If true, the component is disabled.

Link copied to clipboard
abstract external var onBlur: FocusEventHandler<*>?
Link copied to clipboard
abstract external var onChange: ChangeEventHandler<HTMLInputElement, *>?

Callback fired when the state is changed.

Link copied to clipboard
abstract external var onFocus: FocusEventHandler<*>?
Link copied to clipboard
abstract external var onFocusVisible: FocusEventHandler<*>?
Link copied to clipboard
abstract external var readOnly: Boolean?

If true, the component is read only.

Link copied to clipboard
abstract external var required: Boolean?

If true, the input element is required.