Styling Outline #1196
Unanswered
ricardoc05
asked this question in
Q&A
Styling Outline
#1196
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I give styles to the generated Outline, I can't find a props like customTextRenderer?
I think I should use something like this,
`
.....
const tocEstilo = {
ul: {
fontFamily: 'Verdana',
fontSize: '12px',
fontStyle: 'normal',
lineHeight: '2em',
fontWeight: 'normal',
fontVariant: 'normal',
textTransform: 'none',
color: '#00CC33',
textDecoration: 'none',
backgroundColor: '#CCCCCC',
textIndent: '5px',
listStylePosition: 'outside',
listStyleType: 'square',
padding: '6px',
margin: '2px',
}
}
.....
<Outline onItemClick={clickTOC} onLoadSuccess={(outline) => toc(outline)} className={tocEstilo}/>
`
but it doesn't work for me
Beta Was this translation helpful? Give feedback.
All reactions