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

Pass className to child components so that it may work with styled-components #1

Open
beepsoft opened this issue Jan 4, 2021 · 0 comments

Comments

@beepsoft
Copy link

beepsoft commented Jan 4, 2021

Hi!

I just found your project and I really like the audio visualization while recording the audio!

One thing that would make styling AudioReactRecorder easier if you added to the

<div className='audio-react-recorder'>

the this.props.className inherited from the parent component. Something like this:

let className = 'audio-react-recorder'
if (this.props.className) {
    className += " "+this.props.className
}
...
<div className={className}>

This would make AudioReactRecorder work with https://styled-components.com/

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