UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

40 lines (26 loc) 470 B
--- id: Switch section: components cssPrefix: pf-v5-c-switch propComponents: ['Switch'] ouia: true --- ## Examples ### Basic ```ts file="./SwitchBasic.tsx" ``` ### Reversed Layout ```ts file="./SwitchReversed.tsx" ``` ### Without label ```ts file="./SwitchWithoutLabel.tsx" ``` ### Checked with label ```ts file="./SwitchCheckedWithLabel.tsx" ``` ### Disabled ```ts file="./SwitchDisabled.tsx" ``` ### Uncontrolled ```ts file="./SwitchUncontrolled.tsx" ```