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

Function JournalList

examples/rsp-webpack-4/src/JournalList.js:5–33  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

3import JournalEntries from './JournalEntries';
4
5function JournalList(props) {
6 return (
7 <>
8 <Form onSubmit={props.handleSubmit} maxWidth="size-6000">
9 <Flex direction="column" marginTop="size-300" gap="size-100">
10 <Picker
11 label="How Was Your Day?"
12 items={props.options}
13 onSelectionChange={selected => props.setRating(selected)}>
14 {item => <Item key={item.id}>{item.name}</Item>}
15 </Picker>
16 <TextArea
17 width="size-5000"
18 label="Description"
19 value={props.description}
20 onChange={props.setDescription}
21 />
22 <Button type="submit" marginTop="size-200" variant="primary" width="150px">
23 <AddCircle aria-label="add circle" />
24 <Text marginEnd="size-200">Add Entry</Text>
25 </Button>
26 </Flex>
27 </Form>
28 <Divider marginTop="size-600" marginBottom="size-300" />
29 <h2>Entries</h2>
30 <JournalEntries list={props.entryList} />
31 </>
32 );
33}
34
35export default JournalList;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected