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

Be able to change default className rxv-container applied to root element #74

Open
renamartins opened this issue Apr 2, 2024 · 0 comments

Comments

@renamartins
Copy link

The className rxv-container is applied to the root element. However that might conflict with an existing className in someone else's codebase.

Allow the user to change that className to something else by passing a prop. For example:

<XMLViewer xml={xml} defaultClassName="not-rxv-container" />

DOM output:

<div className="not-rxv-container">
   ...
</div>
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