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

Is there any way to style this component with CSS-in-js? #397

Closed
ncesar opened this issue Nov 26, 2021 · 3 comments
Closed

Is there any way to style this component with CSS-in-js? #397

ncesar opened this issue Nov 26, 2021 · 3 comments

Comments

@ncesar
Copy link

ncesar commented Nov 26, 2021

Hi, I'm building a new paginate component using this awesome package but I need to style it. And it seems that the only way to style it is using class but I don't see to find a way to style it using css-in-js. Is there any way to do it?

@MonsieurV
Copy link
Collaborator

Hi @ncesar,

Please see #321 (comment)

@ncesar
Copy link
Author

ncesar commented Feb 2, 2022

Hi @ncesar,

Please see #321 (comment)

Hi. I see that there is a styled-components way of doing but I was searching to do it with css in js.

e.g:

const styles = {
 background: red;
}

<MyComponent style={styles} />

@MonsieurV
Copy link
Collaborator

For now the lib only allows for className (several, actually) to be passed.

Would you find helpful a style prop?

Please continue the conversation on #80

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

2 participants