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

Allow to pass style/className to TransformWrapper & TransformComponent #521

Open
caub opened this issue Dec 8, 2024 · 1 comment
Open

Comments

@caub
Copy link

caub commented Dec 8, 2024

Is your feature request related to a problem? Please describe.
I'd like to pass either className="d-flex flex-column flex-1" or style={{ display: 'flex', flexDirection: 'column', flex: 1 }} to both TransformWrapper and TransformComponent

The goal is to make the component fill all content horizontally

Describe alternatives you've considered
For now I'll apply these styles from the parent element, but it's not ideal, it could break if you change your classes

.react-transform-wrapper, .react-transform-component {
  display: flex;
  flex-direction: column;
  flex: 1;
}
@enchorb
Copy link

enchorb commented Dec 16, 2024

+1

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

3 participants
@caub @enchorb and others