title | description | releaseUrl | releaseDate | version |
---|---|---|---|---|
Version 2.5.3 |
Explore the changelog for Chakra UI version 2.5.3. Learn about the latest features, bug fixes, and improvements. |
March 23, 2023 |
2.5.3 |
Add support for scoping the css reset to specific selector.
To use this feature, pass the resetScope
prop to the ChakraProvider
or
ChakraBaseProvider
component.
import { ChakraProvider } from "@chakra-ui/react"
function App() {
return (
<ChakraProvider resetScope=".ck-reset">
<App />
</ChakraProvider>
)
}
- Add
Image
component that supercharges the Next.js optimized image with Chakra style props.
import { Image } from "@chakra-ui/next-js"
function App() {
return (
<Image
src="/image.jpg"
alt="image"
width={500}
height={500}
objectFit="cover"
/>
)
}
- Add ESM interop for
createCache
to avoid server-related errors
Widen types for loadingText
to accept ReactNode
instead of only string
Fix issue in FormLabel
where htmlFor
and id
could not be set to null
Fix issue where default value is not passed to the createContext
function