aragon / use-viewport

🌅 useViewport() · Viewport sizes and helper functions for responsive applications, quick and easy.
MIT License
12 stars 1 forks source link

Support custom breakpoints #11

Closed andy-hook closed 3 years ago

andy-hook commented 3 years ago

resolves https://github.com/aragon/use-viewport/issues/10

const BREAKPOINTS = {
  alpha: 500,
  beta: 1000,
  gamma: 1500,
}

<ViewportProvider breakpoints={BREAKPOINTS}>
   ...
</ViewportProvider>
codesandbox-ci[bot] commented 3 years ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 657adf5a998cf4e0add4f0bb22876ca010a32b3b:

Sandbox Source
aragon/use-viewport: simple-viewport Configuration
aragon/use-viewport: custom-breakpoints Configuration