-
How can we do for example: import './styles.scss' and use it on for example a VictoryLabel like:
I have tried but I can not get it to work. |
Beta Was this translation helpful? Give feedback.
Answered by
rstor1
Aug 31, 2023
Replies: 1 comment
-
I found that victory does not natively support this type of styling. Instead I used a hook like this in a separate file:
and imported it and used the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rstor1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found that victory does not natively support this type of styling. Instead I used a hook like this in a separate file:
export const useVictoryStyles = () => { return useMemo(...styles)}
and imported it and used the
style={style from imported useVictoryStyles}