Skip to content

Changing Cursor Conditionally #4268

Answered by bcakmakoglu
skspade asked this question in Q&A
Discussion options

You must be logged in to vote

You could still use css + a dynamic class name and do something like this:

<ReactFlow className={isLoading ? 'cursor-progress' : ''} ...>
.react-flow.cursor-progress .react-flow__pane {
	cursor: progress; /* add !important if necessary */
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by skspade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants