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

Function TodoList

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

Source from the content-addressed store, hash-verified

4import Completed from './Completed';
5
6function TodoList(props) {
7 return (
8 <>
9 <Form onSubmit={props.handleSubmit} maxWidth="size-6000">
10 <Flex direction="column">
11 <Flex direction="row" height="size-800" gap="size-200" alignItems={'end'}>
12 <TextField
13 label="Enter Task"
14 width="size-5000"
15 value={props.value}
16 onChange={props.setValue}
17 isRequired
18 />
19 <Button variant="cta" type="submit">
20 Submit
21 </Button>
22 </Flex>
23 <h2>To-Do</h2>
24 <ToDoItems
25 list={props.list}
26 handleList={props.setList}
27 updateCompleted={props.updateCompleted}
28 />
29 </Flex>
30 </Form>
31 <Divider marginTop="size-300" marginBottom="size-300" />
32 <h2>Completed</h2>
33 <Completed completed={props.completed} onDelete={props.clearCompleted} />
34 </>
35 );
36}
37
38export default TodoList;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected