You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to add tabindex="0" to all pre tags because I have them styled as scrollable. It seems like the way to do it according to the docs would be using:
spread props pass arbitrary props to pre tag wrapping code.
But, I can't find any documentation about the correct syntax of how to use it. Has anyone used this?
I've tried: PreTag={'pre tabindex="0"'}, but that doesn't work.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'd like to add tabindex="0" to all pre tags because I have them styled as scrollable. It seems like the way to do it according to the docs would be using:
But, I can't find any documentation about the correct syntax of how to use it. Has anyone used this?
I've tried:
PreTag={'pre tabindex="0"'}
, but that doesn't work.Beta Was this translation helpful? Give feedback.
All reactions