Chakra-ui: [ChakraProvider] Better theme prop required error message

Created on 2 Jul 2020  路  1Comment  路  Source: chakra-ui/chakra-ui

What problem does this feature solve?

A better error message to show on the CLI when Chakra Provider doesn't have the theme prop passed.

Current errom message,
image

What does the proposed API look like?

Error message on how Styled-Components handle it,
image

Additional context

CodeSandBox - Example

Most helpful comment

Thanks for this @navin-moorthy. I've added a better error message.

>All comments

Thanks for this @navin-moorthy. I've added a better error message.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ianstormtaylor picture ianstormtaylor  路  3Comments

harshzalavadiya picture harshzalavadiya  路  3Comments

checkmatez picture checkmatez  路  3Comments

feross picture feross  路  3Comments

nainardev picture nainardev  路  3Comments