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

Adding an extra div @ the breakpoint #110

Closed
madhur77 opened this issue Jan 24, 2020 · 1 comment
Closed

Adding an extra div @ the breakpoint #110

madhur77 opened this issue Jan 24, 2020 · 1 comment

Comments

@madhur77
Copy link

Is there a way to avoid extra div at the breakpoint

@damassi
Copy link
Member

damassi commented Feb 11, 2020

@madhur77 - indeed there is!

<Media greaterThan="xs">
  {(mediaClassNames) => {
    return (
      <MyCustomComponent className={mediaClassNames}>heyyy</span>
    )
  }}
</Media>

I've updated the docs here.

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