react-ansi icon indicating copy to clipboard operation
react-ansi copied to clipboard

Use of classes not documented for ReactAnsi

Open ssbarnea opened this issue 4 years ago • 0 comments

Apparently when using <ReactAnsi log=... ...> I have no possibility to tell it to use classes instead of embedded styles. How can I make it use name styles instead so I can make use project theme?

https://github.com/RaoHai/react-ansi/blob/master/src/index.tsx#L23-L31

On the other hand I do see ansiToJSON supporting a useClasses attribute which defaults to false.

Based on the source code I assumed that adding style={null} would trick it to use classes but apparently it does not work.

ssbarnea avatar Nov 14 '20 12:11 ssbarnea