@@ -11,7 +11,7 @@ export const tags = ['popup', 'overlay'];
11
11
12
12
``` tsx render docs={docs.exports.Popover} links={docs.links} props={['placement', 'size', 'offset', 'crossOffset', 'shouldFlip', 'hideArrow']} type="s2" initialProps={{size: 'S'}}
13
13
" use client" ;
14
- import {Popover , DialogTrigger , ActionButton , CheckboxGroup , Checkbox , Form } from ' @react-spectrum/s2' ;
14
+ import {Popover , DialogTrigger , ActionButton , Form , TextField , Switch , Button } from ' @react-spectrum/s2' ;
15
15
import Filter from ' @react-spectrum/s2/icons/Filter' ;
16
16
import {style } from ' @react-spectrum/s2/style' with {type: ' macro' };
17
17
@@ -23,22 +23,15 @@ function Example(props) {
23
23
</ActionButton >
24
24
{ /* - begin focus -*/ }
25
25
<Popover { ... props } /* PROPS */ >
26
- <Form >
27
- <CheckboxGroup label = " Stops" >
28
- <Checkbox value = { 0 } >Non-stop</Checkbox >
29
- <Checkbox value = { 1 } >1 stop</Checkbox >
30
- <Checkbox value = { 2 } >2+ stops</Checkbox >
31
- </CheckboxGroup >
32
- <CheckboxGroup label = " Bags" >
33
- <Checkbox value = { 0 } >Carry on</Checkbox >
34
- <Checkbox value = { 1 } >Checked bag</Checkbox >
35
- </CheckboxGroup >
36
- <CheckboxGroup label = " Times" >
37
- <Checkbox value = { 0 } >Morning</Checkbox >
38
- <Checkbox value = { 1 } >Afternoon</Checkbox >
39
- <Checkbox value = { 2 } >Evening</Checkbox >
40
- </CheckboxGroup >
41
- </Form >
26
+ <div className = { style ({padding: 12 })} >
27
+ <p className = { style ({font: ' body' , marginTop: 0 })} >How are we doing? Share your feedback here.</p >
28
+ <Form >
29
+ <TextField label = " Subject" placeholder = " Enter a summary" />
30
+ <TextField label = " Description" isRequired placeholder = " Enter your feedback" />
31
+ <Switch >Adobe can contact me for further questions concerning this feedback</Switch >
32
+ <Button styles = { style ({marginStart: ' auto' })} >Submit</Button >
33
+ </Form >
34
+ </div >
42
35
</Popover >
43
36
{ /* - end focus -*/ }
44
37
</DialogTrigger >
@@ -65,17 +58,17 @@ function Example() {
65
58
<Button onPress = { () => setOpen (! isOpen )} >
66
59
Open popover
67
60
</Button >
68
- <div
61
+ <div
69
62
ref = { triggerRef }
70
63
className = { style ({
71
- padding: 8 ,
72
- backgroundColor: ' gray-100' ,
64
+ padding: 8 ,
65
+ backgroundColor: ' gray-100' ,
73
66
borderRadius: ' default' ,
74
67
font: ' ui'
75
68
})} >
76
69
Popover appears here
77
70
</div >
78
- <Popover
71
+ <Popover
79
72
/* - begin highlight -*/
80
73
triggerRef = { triggerRef }
81
74
isOpen = { isOpen }
0 commit comments