A wrapper around PatternFly's Switch component that adds support for a
description or helper text displayed below the label.
This component is useful when users can benefit from additional context about
the switch’s function.
Use this component when a toggle requires more explanation. If no description
is needed, prefer using the standard PatternFly Switch component directly.
Parameters
__namedParameters: SwitchEnhancedProps
Returns Element
Example
<SwitchEnhanced id="installation-only-connection" label="Use for installation only" description="The connection will be used only during installation and not persisted to the installed system." isChecked={isEnabled} onChange={toggleEmailNotifications} />
A wrapper around PatternFly's
Switchcomponent that adds support for a description or helper text displayed below the label.This component is useful when users can benefit from additional context about the switch’s function.
Use this component when a toggle requires more explanation. If no description is needed, prefer using the standard PatternFly
Switchcomponent directly.