0.4.1 • Published 6 years ago
@react-stuff/responsive v0.4.1
React Stuff - Responsive

https://react-stuff.netlify.app/
Responsive Provider
This is the root component. It's responsible of:
- listening to resize events
- providing breakpoints/current breakpoint values to all its descendants
import { ResponsiveProvider } from '@react-stuff/responsive';Responsive Container
- applies a
widthvalue based on the current breakpoint - will include
ResponsiveProviderifbreakpointsorisRelativeToParentare directly passed as props
import { ResponsiveContainer } from '@react-stuff/responsive';Responsive Grid
- applies the
guttervalue to its children - will include
ResponsiveContainer(andResponsiveProvider) ifbreakpoints,margins,widths,isRelativeToParentorisCenteredare directly passed as props
import { ResponsiveGrid } from '@react-stuff/responsive';Responsive Unit
Generally used within a block/flex container.
- applies
sizesas a relative width based on its parent - applies
offsetsas a relative margin based on its parent
import { ResponsiveUnit } from '@react-stuff/responsive';