Cursors
Customize cursor styles for interactive elements.
By default, interactive elements that don’t link to another page use the regular arrow cursor. This also matches the browser defaults. However, disabled elements use an explicit disabled cursor.
default
pointer
grab
grabbing
not-allowed
wait
text
move
help
Cursor tokens
Cursor settings can be accessed using CSS variables. You can use these tokens to style your custom components, ensuring they are accessible and consistent with the rest of your theme.
Customization
It’s common to use a pointer cursor for interactive elements. Radix Themes cursors can be customized by overriding the corresponding CSS variables of the token system.
Here’ s an example of how you can customize the cursor tokens to set cursor: pointer
for most interactive elements in the theme:
Make sure that your CSS is applied after the Radix Themes styles so that it takes precedence.
Was this page helpful?