Skip to content

Problems when setting customBreakpoints #3937

Discussion options

You must be logged in to vote

Hey @Viraj24Gupta I took a look into this and managed to get it working in this CodeSandbox. You are missing the "px" in the breakpoints array. Let me know if this resolves your issue.

<CustomizationProvider baseTheme="default" customBreakpoints={["450px", "768px", "1024px"]}>
    <Box display={["none", "flex", "flex"]}> // refering it as box1 below
           some code
     </Box>
</CustomizationProvider>

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Viraj24Gupta
Comment options

@krisantrobus
Comment options

Answer selected by Viraj24Gupta
@roxanagomez
Comment options

@Viraj24Gupta
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External This Discussion was posted by a non-Twilio Paste consumer
4 participants