node/@patternfly/react-core/src/components/Switch/examples/SwitchUncontrolled.tsx
raw| 1 | import { Fragment } from 'react'; |
| 2 | import { Switch } from '@patternfly/react-core'; |
| 3 | |
| 4 | export const SwitchUncontrolled: React.FunctionComponent = () => ( |
| 5 | <Fragment> |
| 6 | <Switch |
| 7 | id="uncontrolled-switch-no-label" |
| 8 | aria-label="Togglable option for uncontrolled and no visible label example" |
| 9 | defaultChecked={false} |
| 10 | /> |
| 11 | <br /> |
| 12 | <Switch |
| 13 | id="uncontrolled-switch-with-label" |
| 14 | label="Togglable option for uncontrolled example" |
| 15 | defaultChecked={false} |
| 16 | /> |
| 17 | </Fragment> |
| 18 | ); |