Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of classes not documented for ReactAnsi #292

Open
ssbarnea opened this issue Nov 14, 2020 · 0 comments
Open

Use of classes not documented for ReactAnsi #292

ssbarnea opened this issue Nov 14, 2020 · 0 comments

Comments

@ssbarnea
Copy link

ssbarnea commented Nov 14, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant