MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Lighting

Function Lighting

examples/rsp-webpack-4/src/Lighting.js:3–6  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

1import {Switch} from '@adobe/react-spectrum';
2
3function Lighting(props) {
4 let mode = props.selected ? 'Light Mode' : 'Dark Mode';
5 return <Switch onChange={props.switch}>{mode}</Switch>;
6}
7
8export default Lighting;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected