@@ -16,7 +16,7 @@ export default component$(() => {
16
16
< Box />
17
17
</ PopoverContent >
18
18
19
- < PopoverTrigger ariaAttributes = { { ariaLabel : 'click-friend' } } >
19
+ < PopoverTrigger >
20
20
< Button onClick$ = { ( ) => console . log ( 'here' ) } > CLICK ME </ Button >
21
21
</ PopoverTrigger >
22
22
</ Popover >
@@ -26,9 +26,7 @@ export default component$(() => {
26
26
< Box />
27
27
</ PopoverContent >
28
28
< PopoverTrigger >
29
- < Button onClick$ = { ( ) => console . log ( 'here' ) } >
30
- Offset and position
31
- </ Button >
29
+ < Button onClick$ = { ( ) => console . log ( 'here' ) } > Offset and position</ Button >
32
30
</ PopoverTrigger >
33
31
</ Popover >
34
32
@@ -88,8 +86,8 @@ export default component$(() => {
88
86
89
87
< h1 class = "mt-8" > DISABLE CLICK OUTSIDE</ h1 >
90
88
< p >
91
- Popovers are not closed when click outside but they can be closed
92
- clicking their own trigger button only
89
+ Popovers are not closed when click outside but they can be closed clicking their
90
+ own trigger button only
93
91
</ p >
94
92
95
93
< div class = "flex flex-col gap-2" >
@@ -140,8 +138,8 @@ export default component$(() => {
140
138
< code > Current state: { JSON . stringify ( controlledPopover . value ) } </ code >
141
139
</ div >
142
140
< p >
143
- The popover can be closed clicking outside or clicking the CLOSE button
144
- inside the popover
141
+ The popover can be closed clicking outside or clicking the CLOSE button inside the
142
+ popover
145
143
</ p >
146
144
< p > the onUpdate$ callback allows you to sync local and popover states</ p >
147
145
@@ -156,16 +154,12 @@ export default component$(() => {
156
154
< Card >
157
155
< CardBody >
158
156
< CardTitle > title</ CardTitle >
159
- < Button onClick$ = { ( ) => ( controlledPopover . value = false ) } >
160
- CLOSE ME
161
- </ Button >
157
+ < Button onClick$ = { ( ) => ( controlledPopover . value = false ) } > CLOSE ME</ Button >
162
158
</ CardBody >
163
159
</ Card >
164
160
</ PopoverContent >
165
161
< PopoverTrigger >
166
- < Button onClick$ = { ( ) => console . log ( 'clicked' ) } >
167
- TOGGLE POPOVER
168
- </ Button >
162
+ < Button onClick$ = { ( ) => console . log ( 'clicked' ) } > TOGGLE POPOVER</ Button >
169
163
</ PopoverTrigger >
170
164
</ Popover >
171
165
0 commit comments