Custom width for provider #1508
Unanswered
cosmanBrenden
asked this question in
Q&A
Replies: 1 comment
-
Like this <SizeMe>
{({ size }) => (
<Responsive
width={size.width ?? undefined}
className="layout tc-sidebar-tabs-main"
onLayoutChange={onLayoutChange}
onBreakpointChange={(breakpoint, _newCols) => {
setCurrentBreakpoint(breakpoint);
}}
layouts={allLayouts}
breakpoints={{ lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 }}
cols={{ lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 }}>
{gridChildren}
</Responsive>
)}
</SizeMe> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do you give the width provider a custom width value or how would you use React-SizeMe to use a custom width?
Beta Was this translation helpful? Give feedback.
All reactions