useResponsiveProps
Last updated
Last updated
The hook adds support to any React component by proxying given props based on the current viewport dimensions.
Accepts an Object of responsive props and returns an Object of pure props relevant to the current viewport. Breakpoint name and behavior is stripped out from the pure props.
Now the created Avatar
component supports a url
prop as a responsive prop: