Skip to content

Commit 0b31c10

Browse files
improve example
1 parent 6e93c8f commit 0b31c10

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

apps/website/src/routes/docs/headless/carousel/examples/mousewheel.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ export default component$(() => {
1717
background-color: hsl(var(--primary));
1818
}
1919
20+
.mousewheel-pagination {
21+
display: flex;
22+
flex-direction: column;
23+
gap: 4px;
24+
position: absolute;
25+
top: 33%;
26+
right: 8px;
27+
}
28+
2029
`);
2130

2231
return (
@@ -38,16 +47,7 @@ export default component$(() => {
3847
</Carousel.Slide>
3948
))}
4049
</Carousel.Scroller>
41-
<Carousel.Pagination
42-
style={{
43-
position: 'absolute',
44-
top: '33%',
45-
right: '8px',
46-
display: 'flex',
47-
flexDirection: 'column',
48-
gap: 4,
49-
}}
50-
>
50+
<Carousel.Pagination class="mousewheel-pagination">
5151
{colors.map((color) => (
5252
<Carousel.Bullet class="mousewheel-bullet" key={color} />
5353
))}

0 commit comments

Comments
 (0)