More cursor effects in Pro
Cursor trails and pointer effects that give a site its own feel.
as | ElementType | 'button' | Element or component to render, for example a, div or a router Link. |
color | Color of the star and its glow. Defaults to white on dark and ink on light. | ||
trailColor | Color the trail fades into behind the star. Defaults to color. | ||
duration | 4 | Seconds for one lap around the border. The star keeps the same pace on any shape. | |
direction | 'clockwise' | 'counterclockwise' | 'clockwise' | Which way the star travels. |
stars | Stars spaced evenly around the border, up to 6. | ||
trailLength | 0.3 | Length of the trail as a share of the border. Trails stretch when the star speeds up. | |
thickness | Border width in pixels. | ||
radius | 12 | Corner radius in pixels. Values past half the height give a pill. | |
glow | 0.6 | Bloom around the star and its trail, from 0 to 1. Light spills onto the surface and the page. | |
sparkle | Puts a small twinkling glint at the front of each trail and lets it shed fine stardust. | ||
hover | 'lap' | 'brighten' | 'reveal' | 'none' | 'lap' | What happens on hover and keyboard focus. Lap sends the star once around the border, brighten makes the light shine stronger, and reveal keeps it hidden until then. |
clickPulse | Sends light racing around the border from the point you press. | ||
theme | 'dark' | 'light' | 'dark' | Picks the default surface, text, border and star colors. |
backgroundColor | Surface color. Follows the theme when not set. | ||
textColor | Text color. Follows the theme when not set. | ||
borderColor | Color of the resting border the star travels on. Follows the theme when not set. | ||
| Extra classes for the root, for example to change padding or font. | |||
| Inline styles for the root. |
asElementTypeElement or component to render, for example a, div or a router Link.
'button'colorstringColor of the star and its glow. Defaults to white on dark and ink on light.
trailColorstringColor the trail fades into behind the star. Defaults to color.
durationnumberSeconds for one lap around the border. The star keeps the same pace on any shape.
4direction'clockwise' | 'counterclockwise'Which way the star travels.
'clockwise'starsnumberStars spaced evenly around the border, up to 6.
trailLengthnumberLength of the trail as a share of the border. Trails stretch when the star speeds up.
0.3thicknessnumberBorder width in pixels.
radiusnumberCorner radius in pixels. Values past half the height give a pill.
12glownumberBloom around the star and its trail, from 0 to 1. Light spills onto the surface and the page.
0.6sparklebooleanPuts a small twinkling glint at the front of each trail and lets it shed fine stardust.
hover'lap' | 'brighten' | 'reveal' | 'none'What happens on hover and keyboard focus. Lap sends the star once around the border, brighten makes the light shine stronger, and reveal keeps it hidden until then.
'lap'clickPulsebooleanSends light racing around the border from the point you press.
theme'dark' | 'light'Picks the default surface, text, border and star colors.
'dark'backgroundColorstringSurface color. Follows the theme when not set.
textColorstringText color. Follows the theme when not set.
borderColorstringColor of the resting border the star travels on. Follows the theme when not set.
Extra classes for the root, for example to change padding or font.
Inline styles for the root.



