Debian Codegraph @

node/@patternfly/react-core/src/components/Switch/examples/SwitchDisabled.tsx

raw
1 import { Fragment } from 'react';
2 import { Switch } from '@patternfly/react-core';
3
4 export const SwitchDisabled: React.FunctionComponent = () => (
5 <Fragment>
6 <Switch id="disabled-switch-on" label="Togglable option for disabled checked example" isChecked isDisabled />
7 <br />
8 <Switch
9 id="disabled-switch-off"
10 label="Togglable option for disabled unchecked example"
11 isChecked={false}
12 isDisabled
13 />
14 <br />
15 <Switch
16 id="disabled-no-label-switch-on"
17 aria-label="Togglable option for checked with no visible label example"
18 isChecked
19 isDisabled
20 />
21 <br />
22 <Switch
23 id="disabled-no-label-switch-off"
24 aria-label="Togglable option for unchecked with no visible label example"
25 isChecked={false}
26 isDisabled
27 />
28 </Fragment>
29 );