Skip to content

Latest commit

 

History

History
679 lines (499 loc) · 26.3 KB

v1.6.4.mdx

File metadata and controls

679 lines (499 loc) · 26.3 KB
title description releaseUrl releaseDate version
Version 1.6.4
Explore the changelog for Chakra UI version 1.6.4. Learn about the latest features, bug fixes, and improvements.
June 18, 2021
1.6.4

Minor Changes

Patch Changes

Minor Changes

  • 31ec6466c #4029 Thanks @jesstelford! - useBreakpointValue() now supports receiving a defaultBreakpoint as the second argument to support SSR/SSG.

Minor Changes

  • 5afa7ef49 #4180 Thanks @segunadebayo! - Added computePositionOnMount prop to allow positioning the popover or menu before initial open

Patch Changes

Minor Changes

  • 5afa7ef49 #4180 Thanks @segunadebayo! - Added computePositionOnMount prop to allow positioning the popover or menu before initial open

Patch Changes

Minor Changes

Minor Changes

  • 991ea2e29 #3998 Thanks @terrierscript! - The styled function allows a functional baseStyle property:

    import { styled } from '@chakra-ui/react'
    
    const MyComponent = styled('div', {
      baseStyle: (props) => ({
        bg: props.highlightColor
      })
    })
    
    // ...
    
    <MyComponent highlightColor="red.500" />

Patch Changes

Minor Changes

  • fe2557584 #4067 Thanks @jrolfs! - The tokens command now supports generating theme token type definitions from a Chakra UI theme published as a package:

    npx @chakra-ui/cli tokens <@your-org/chakra-theme-package>

    A published theme package should export a theme object as either the default export or an export named theme.

    // chakra-theme-package/src/index.js
    import { extendTheme } from "@chakra-ui/react"
    
    const theme = extendTheme({})
    
    // as default export
    export default theme
    // as named export
    export { theme }

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

  • 5afa7ef49 #4180 Thanks @segunadebayo! - - Wrap force update within a function to prevent null scenarios
    • Add default inset value to prevent overflow in scenarios where enabled is false (i.e. when the popper is not visible)

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

  • cbf8bbdf0 #4157 Thanks @vcastroi! - Fix an issue where the distance to the next element below a textarea was too large in some browsers.

  • afb9b3cfa #4103 Thanks @with-heart! - Update transitions to use theme tokens and remove outline transitions

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Minor Changes

Patch Changes

Patch Changes