Changelog

The Changelog gives an overview of the meaningful changes we've made to Chakra UI as we keep driving for better performance and best-in-class developer experience.

To better understand the changelog, here are some legends we use:

  • πŸ’₯ Breaking
  • πŸš€ Feature
  • πŸ› Bug fix
  • πŸ›  Refactor

09-11-2021#

@chakra-ui/react@1.7.0

Update build system we use from a custom babel cli setup to preconstruct.

The previous build system transpiles the code in src directory to dist/esm and dist/cjs keeping the same file structure. The new build system merges all files in src and transpiles to a single esm and cjs file.

Potential Breaking Change: The side effect of this is that, if you imported any function, component or hook using the undocumented approach like import { useOutsideClick } from "@chakra-ui/hooks/dist/use-outside-click", you'll notice that the this doesn't work anymore.

Here's how to resolve it:

// Won't work πŸŽ‡
import { useOutsideClick } from "@chakra-ui/hooks/dist/use-outside-click"
// Works βœ…
import { useOutsideClick } from "@chakra-ui/hooks"

If this affected your project, we recommend that you import hooks, functions or components the way it's shown in the documentation. This will help keep your project future-proof.

Color Mode v1.3.0

Fixed color mode behavior priority in the following order:

  • If useSystemColorMode is true, the system's color mode will be used as default and we'll fallback to the initialColorMode if system color mode isn't resolved.

  • If --chakra-ui-color-mode is defined through e.g. ColorModeScript this will be used.

  • If local storage is used as the colorModeManager and a value is defined for chakra-ui-color-mode, this will be used.

  • if initialColorMode is set to system, the system's color mode will be used as default and we'll fallback to the initialColorMode if system color mode isn't resolved.

  • if initialColorMode is set to 'light' or 'dark', the corresponding value will be used.

Modal v1.10.0, Focus Lock v1.2.0

JSDOM is used when testing react components in jest and other unit testing frameworks. In particular, when used with @testing-library/react for simulating real user input.

Locally tested on an Apple M1 Air using a moderately complex <Modal> component (which contained inputs, react-hook-form usage, etc). Before this change: 20,149ms After this change: 2,347ms

Approx. 10x performance increase.

Select v1.2.0

  • Fixed an styling issue where it was not possible to customize the icon spacing of the Select component.

Theme v1.12.0

  • Fixed an styling issue where it was not possible to customize the icon spacing of the Select component.

Slider v1.5.0

  • Fixed the bug in RangeSlider where an index out of bounds error would occur incase of stacked thumbs.

03-11-2021#

@chakra-ui/react@1.6.12

  • Allow usage of framer-motion 5.x in peerDependency

Radio v1.3.13

  • Improve types defined for getRadioprops

Checkbox v1.5.10

  • Allow usage of framer-motion 5.x in peerDependency

Menu v1.7.8

  • Allow usage of framer-motion 5.x in peerDependency

Modal v1.9.4

  • Allow usage of framer-motion 5.x in peerDependency

Popover v1.9.1

  • Allow usage of framer-motion 5.x in peerDependency

Theme v1.11.1

  • Allow usage of framer-motion 5.x in peerDependency

Toast v1.3.4

  • Allow usage of framer-motion 5.x in peerDependency

Tooltip v1.3.14

  • Allow usage of framer-motion 5.x in peerDependency

Transition v1.3.8

  • Allow usage of framer-motion 5.x in peerDependency

Media Query v1.1.5

  • Corrected eslint errors.
  • Fix an issue where the useMediaQuery was not updating the array of booleans correctly when resizing the viewport.

It also removes deprecated calls addListener and removeListener in favor of the recommended addEventListener and removeEventListener calls.

Color Mode v1.2.0

Added possibility to use the system preferred color scheme as value for initialColorMode, while still respecting a user's previous choice.

As long as the user does not manually select a color mode through a website interaction, the theme will change when the system preference changes.

This would easily allow for an implementation where the user can choose between light, dark and system by simply setting the initialColorMode setting to system and presenting the user with the three options.

Popper v2.3.1

  • Remove default [] value for modifiers and moved it into createPopper definition. This allows memoized modifiers to work correctly in user-land when used with useCallback.

31-10-2021#

@chakra-ui/react@1.6.11

Anatomy v1.1.0

  • Add closeButton to popover component parts

Styled System v.1.13.0

  • Add _groupFocusVisible pseudo style props

Breadcrumb v1.2.10

  • href attribute will no longer be set on the inner element of the BreadcrumbLink if the parent BreadcrumbItem has isCurrentPage prop set to true. Such a BreadcrumbLink is not an actual link and it ends up being a span (by default).

Color Mode v1.1.14

  • Use the correct owner document when appending styles to document.body

Hooks v.1.6.2

  • Fix potential infinite loop in useDisclosure's onOpen and onClose callbacks. The fix is to wrap the callbacks in useCallbackRef

Menu v1.7.7

  • Fixed an error where the onOpen was called multiple/infinite times
  • Fix issue where computePositionOnMount didn't work without explict value

Radio v1.3.12

  • Fix issue where props are duplicated on child label and span elements
  • Removed aria-readonly from checkbox in favor of WCAG 4.1.2

Utils v1.8.4

  • Use fromEntries polyfill from @chakra-ui/utils

Switch v1.2.12

  • Fix issue where focusing the Switch could lead to unexpected page scrolls.

System v1.7.5

  • Fixed a bug in useToken where it wasn't possible to resolve some tokens which contain dots like useToken('space','1.5')

Gatsby Plugin 2.0.2

  • Update peerDependencies to support new version

14-10-2021#

@chakra-ui/react@1.6.10

Radio v1.3.11

  • Add support for styling the container element based on the radio state

Popover v1.8.5

  • Fix issue where computePositionOnMount didn't work without explict value

Utils v1.8.3

  • Fixed iframe bug on firefox when using getRelatedTarget function
  • Fix issue where pan-event utils don't work within iframe

Hooks v1.6.1

  • Forward threshold options from usePanSession to PanSession class

Slider v1.4.1

  • Fix issue where value can't be changed when range-slider thumbs are stacked

Modal v1.9.2

  • Fix issue where modal doesn't close when the escape key is pressed and closeOnOverlayClick is false

Cli v1.5.3

  • Fixed an issue where the CLI tokens command exited unexpectedly with: SyntaxError: Cannot use import statement outside a module

Checkbox v1.5.8

  • Fix issue where tabIndex property isn't passed to the underlying input element

05-10-2021#

Button v1.4.4

  • Added missing @chakra-ui/react-utils import

Slider v1.4.0

  • Move hard-coded styles to slider's theme
  • Add support for multithumb slider. We now have useRangeSlider, RangeSlider and RangeSlider* components
<RangeSlider>
<RangeSliderTrack>
<RangeSliderFilledTrack />
</RangeSliderTrack>
<RangeSliderThumb index={0} />
<RangeSliderThumb index={1} />
</RangeSlider>

Transition v1.3.5

  • Updated transition variants for drawer animations to prevent it from disappearing when placement conditionally changes

Cli v1.5.2

  • Fixed an issue where the CLI failed with SyntaxError: JSON5: invalid character.

Theme v1.10.3

  • Refactor slider theme from slider.tsx to slider's theme

Toast v1.3.1

  • Allow alerts rendered by useToast and createStandaloneToast to be discovered by role and accessible name (e.g. using Testing Library ByRole).

20-09-2021#

Theme Tools v1.2.1

  • Replace tinycolor2 with @ctrl/tinycolor to get better tree-shaking benefits

Theme v1.10.2

  • Replace tinycolor2 with @ctrl/tinycolor to get better tree-shaking benefits

Checkbox v1.5.7

  • Add state data-* attributes to the checkbox container to allow user style the _checked, _invalid and _disabled states

Slider v1.3.0

  • Add RTL support by using the theme's direction ("ltr" or "rtl") to set the default isReversed property when the orientation is horizontal

Modal v1.9.0

  • Drawer: Add support for RTL-aware placement values. You can now pass start and end values. The drawer will use left/right placement depending on the specified theme.direction value.
  • Drawer: omit the motionPreset prop type since Drawer only implements the Slide transition, unlike Modal that allows you switch its motion preset.

Image v1.0.20

  • Fix issue where onload doesn't get called when using srcset
  • If the user doesn't provide a fallbackSrc or a fallback ignoreFallback is applied by default

Anatomy v1.0.1

  • Add missing breadcrumb part
  • Add container part to checkbox

Popper v2.3.0

  • usePopper now accepts a direction prop so it can handle placement for RTL languages. Values such as top-start, top-end, bottom-start and bottom-end will be flipped depending on the theme's direction value.

In addition to the default popper.js placement, you can pass start-start, start-end, end-start and end-end. This will resolve to the equivalent popper.js placement as well.

Cli v1.5.1

  • Fixed an issue where the CLI did not resolve custom tsconfig paths.

🚨 Please note that only the first alias target from the string array will be resolved.

// tsconfig.json
{
//...
"compilerOptions": {
"baseUrl": "src",
"paths": {
"@alias/*": ["target/*"]
// ^-- only the first target will be resolved
}
}
}

Avatar v1.2.10

  • Fix issue where avatar blinks during API call due to its fallback logic. You can disable the fallback logic by setting ignoreFallback, just like you can with the Image component

Toast v1.3.0

  • Add support for RTL-aware position values. You can now use top-start, top-end, bottom-start and bottom-end values. The toast will flip depending on the direction provided in the theme.

Provider v1.6.8

  • Resolve dependency issues caused by previous release
  • Add ChakraProviderProps type what was removed in previous release

Menu v1.7.4

  • Fix issue where keyboard navigation doesn't work when MenuButton isn't rendered. This is useful in scenarios where you want the menu to be triggered by a command or right-click.

Button v1.4.3

  • Fix issue where composing Button with framer-motion's motion factory breaks animation/transition

Select v1.1.15

  • The disabled state of the SelectIcon can be reflected by a disabled FormControl or by the isDisabled-flag of the select field

29-08-2021#

@chakra-ui/react@1.6.7

  • Move ChakraProvider to a separate package @chakra-ui/provider
  • Loosen types of extendTheme to allow recent TS compiler to work and avoid Type instantiation is excessively deep and possibly infinite errors.

This might lead to a slightly degraded autocomplete experience when extended the theme but we promise to revisit the typings and API very soon.

In the meantime, please use ThemeOverrides type to provide

Slider v1.2.9

  • Fix issue where slider thumb gets focus when onChangeEnd changes.
  • Call onChangeStart/ onChangeEnd when clicking somewhere in the SliderTrack without dragging the DragHandle

Skeleton v1.1.18

  • Don't animate when skeleton was previously loaded

System v1.7.3

  • Update useStyleConfig to read parts array from the new anatomy class

Theme Tools v1.2.0

  • Add new helpers to the theme-tools package to make the process of creating component themes less cumbersome.

  • cssVar - function to create css vars

  • calc - function that makes it easy to create the css calc string

  • anatomy- function to define and extend component parts

Creating a CSS variable in the theme

import { cssVar, calc } from "@chakra-ui/theme-tools"
const $width = cssVar("slider-width")
const $height = cssVar("slider-height")
const $diff = calc($width).subtract($height).toString()
$width.variable // => '--slider-width'
$width.reference // => 'var(--slider-width)'

Create a component anatomy

import { anatomy } from "@chakra-ui/theme-tools"
import type { PartsStyle } from "@chakra-ui/theme-tools"
const btn = anatomy("button").parts("label", "container")
const newBtn = btn.extend("icon") // extend button to include icon part
// Using the anatomy in component theme
const baseStyle: PartsStyle<typeof newBtn> = {
// auto-complete for the component parts
icon: {...},
label: {...}
}

Added PartsStyleObject and PartStyleFunction types for easy creation of type-safe, multipart component styles.

Radio v1.3.10

  • Add isDisabled to RadioGroup to make it possible to disable all Radio inside RadioGroup
  • Add isFocusable to RadioGroup to make it possible to define the focusable-state for all Radio inside a RadioGroup

Provider v1.6.7

  • Move ChakraProvider to a separate package @chakra-ui/provider

Hooks v1.6.0

  • Added an enabled prop to the useOutsideClick hook to conditionally attach event handlers.

  • Updated the useMenu hook to only enable the useOutsideClick hook when the menu is open.

Toast v1.2.11

  • Add correct variant type to UseToastOptions

Layout v1.4.9

  • Fix url for LinkBox component

Theme v1.10.1

  • Added overview:"visible" to baseStyle of TagLabel to avoid clipped text

09-08-2021#

@chakra-ui/react@1.6.6

Form Control v1.4.0

  • πŸš€ Added a container part to the FormControl component theme, allowing the root FormControl element to be themed.
import { extendTheme } from "@chakra-ui/react"
export const theme = extendTheme({
components: {
Form: {
variants: {
// create a variant named "custom"
custom: {
// style the root `FormControl` element
container: {
color: "white",
bg: "blue.900",
},
},
},
},
},
})
  • πŸ›  Remove code that was added as a workaround for pre-releases of React concurrent mode.

  • πŸ› If an aria-describedby property is passed it will be joined with the id's from helper text and error message instead of being overwritten.

Theme v1.10.0

  • πŸš€ Added a container part to the FormControl component theme, allowing the root FormControl element to be themed.

  • πŸ› Fixed issue where modals with size=full have vertical margins.

Button v1.4.2

πŸ› Resolved an issue where a Button in loading state didn't consider the width of leftIcon and rightIcon, resulting in layout shifts when the button leaves the loading state. Buttons now render with the same width regardless of state.

Checkbox v1.5.5

πŸ›  Remove code that was added as a workaround for pre-releases of React concurrent mode.

Layout v1.4.8

Stack: πŸ› Ensure that when cloning children, their provided keys are preferred over index. This prevents them from being destroyed and recreated when a child's position in the list changes.

Menu v1.7.2

πŸ› MenuList scroll to next MenuItem on keyboard navigation when there is a defined maxHeight on MenuList.

Fix issues when rendering chakra components in different window

NumberInput v1.2.9

πŸ›  Remove code that was added as a workaround for pre-releases of React concurrent mode.

Radio v1.3.9

πŸ›  Remove code that was added as a workaround for pre-releases of React concurrent mode.

Slider v1.2.8

πŸ› Fix issue where slider thumb doesn't show active state in firefox

Stat v1.1.12

πŸš€ Add container part to Stat styleConfig

Styled System v1.12.2

  • πŸ› Corrected parseGradient function so that it checks for CSS functions. Previously, using the CSS calc function would result in invalid CSS being generated. The expectation is that:
<Heading bgGradient="linear(to-r, green.200, pink.500 calc(20px + 20px))">
Chakra-UI: Create accessible React apps with speed
</Heading>
functions similar to linear-gradient which handles using a CSS function
<Heading
bgImage="linear-gradient(
to right,
var(--chakra-colors-green-200)),
var(--chakra-colors-pink-500 calc(20px + 20px))"
>
Chakra-UI: Create accessible React apps with speed
</Heading>
  • πŸ› Grid props type definitions now correctly reflect the implemented behavior in regard to tokens.

System v1.7.2

πŸ› Fix type definitions for apply prop. The apply prop supports responsive styles:

// Before: type error, expects `string` for `apply`
<Text apply={{ sm: 'styles.h3', lg: 'styles.h4' }}>
// After: no type error, expects `ResponsiveValue<string>` for `apply`
<Text apply={{ sm: 'styles.h3', lg: 'styles.h4' }}>

Tooltip v1.3.9

πŸ› Fix tooltips not closing when openDelay is set

Utils v1.8.2

  • Remove code that was added as a workaround for pre-releases of React concurrent mode.
  • πŸ› Fix issues when rendering chakra components in different window

08-07-2021#

@chakra-ui/react@1.6.5

CLI @1.5.0

  • πŸš€ Enable esModuleInterop for chakra-cli tokens
  • πŸ› Token generation supports non valid JS keys for components

Utils v@1.8.1

  • πŸ› Fixed a circular dependency which was causing warnings when bundling Chakra with rollup.

System v@1.7.1

  • πŸ› Fix issue where undefined style props (such as borderRadius) would not fallback to the default styles

16-06-2021#

@chakra-ui/react@1.6.4

Button v1.4.0

  • πŸš€ Add className prop to button load spinner.
  • πŸ› Update transitions to use theme tokens and remove outline transitions.

Media Query v1.1.0

  • πŸš€ useBreakpointValue() now supports receiving a defaultBreakpoint as the second argument to support SSR/SSG.

Styled System v1.12.0

System v1.7.0

  • πŸš€ 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" />

Cli v1.4.0

  • πŸš€ 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 }

Accordion v1.3.3 & Checkbox v1.5.3 & Control Box v1.0.13 & Modal v1.8.8 & Number Input v1.2.7 & Progress v1.1.10 & Tag v1.1.10

  • πŸ› Update transitions to use theme tokens and remove outline transitions.

Hooks v1.5.3

  • πŸ› Fix inconsisent id generation between client and server.

Menu v1.6.4

  • πŸ› Fix issue where closeOnSelect won't work sometimes.
  • πŸ› Update transitions to use theme tokens and remove outline transitions.

Popover v1.7.2

  • πŸ› Fix issue where arrowshadowcolor didn't work.

React v1.6.4

  • πŸ› Fix inconsisent id generation between client and server.

Stat v1.1.10

  • πŸ› Export TypeScript interface StatGroupProps.

Tabs v1.5.2

  • πŸ› Render tab indicator at the correct position.
  • πŸ› Update transitions to use theme tokens and remove outline transitions.

Theme v1.9.1

  • πŸ› Fix an issue where the distance to the next element below a textarea was too large in some browsers.
  • πŸ› Update transitions to use theme tokens and remove outline transitions.

Toast v1.2.8

  • πŸ› Resolved an issue where overflowX couldn't be used within a toast's title or description by adding maxWidth="100%" to the containing div.

Transition v1.3.2

  • πŸ› Fixed an issue in the Collapse transition's enter animation in case of unmountOnExit.

26-05-2021#

@chakra-ui/react@1.6.3

Popper v2.2.0

The popper.js instance will not be created until the enabled option is true. This improves the render and scroll performance when you use many popper-related items.

Affected components: Menu, Popover and Tooltip components

Media Query v1.0.14 Fix issue where useMediaQuery does not work as expected when use within an iframe. The hook now references the correct ownerDocument

Styled System v1.6.7

  • Fix boolean condition affecting bgImage url
  • Fix import type issues caused by the WithCSSVar type

17-05-2021#

@chakra-ui/react@1.6.2

Styled System v1.11.0

Ring

  • πŸš€ Added ring style props to make it easier to style an element's focus ring shadows. Props are ring, ringColor, ringOffset, and ringOffsetColor.

CodeSandbox Link

// adds a 2px box-shadow with `gray.400` color
<Box ring="2px" ringColor="gray.400">
Sample
</Box>
// adds main box-shadow + offset box-shadow
<Box ring="2px" ringColor="gray.400" ringOffset="3px" ringOffsetColor="white">
Sample
</Box>

Filter Styles

  • πŸš€ Added css variable based API to apply css filter properties (blur, backdrop-blur) to an element. Props are filter, blur, sepia, brightness, invert, saturation, backdropFilter, backdropBlur, sepia, saturation, etc.

To use this API, you'll need to set filter to auto, same for backdropFilter.

// adds a 3px blur filter to this element
<Image src="boruto.png" filter="auto" blur="3px" />
// adds a 3px blur and 40% saturation filter to this element
<Image src="boruto.png" filter="auto" blur="3px" saturation={0.4} />

Transform Styles

  • πŸš€ Added css variable based API to apply css transform properties (translateX, translateY, scale, etc.). Props are translateX, translateY, rotate, scaleX, scaleY, and scale.

To use this API, you'll need to set transform to auto or auto-gpu (for the GPU accelerated version).

<Circle transform="auto" translateX="4" _hover={{ translateX: "8" }}>
<CheckIcon />
</Circle>
  • Add mixBlendMode, backgroundBlendMode, and bgBlendMode props to apply blend modes to elements.

  • Automatic wrapping of backgroundImage or bgImage props with url() so you can just pass the image URL directly.

// You can now do this!
<Box bgImage="naruto.png" />
// This still works
<Box bgImage="url(naruto.png)" />
  • Text decoration styles: Added textDecorationColor, textDecorationLine, textDecorationStyles style props.

  • Add isolation style prop to create a new stacking context.

High Contrast Mode

  • Fixed issue where setting outline:0 or outline:none and using box-shadow for focus outlines don't work in high-contrast mode.

  • To fix this, we've added outline: 2px solid transparent whenever you set outline:0 to make your components work in high-constrast mode by default.

Learn more

  • Fix the _dark pseudo props to map to .chakra-ui-dark &, [data-theme=dark] &, &[data-theme=dark].

  • Added _light pseudo props to map to .chakra-ui-light &, [data-theme=light] &, &[data-theme=light] for users that prefer to start with dark mode.

  • Added overscroll, overscrollX, and overscrollY style prop to manage overscroll behavior of an container.

Theme v1.9.0

  • πŸš€ Add blur token values for filter and backdropFilter.
{
"none": 0,
"sm": "4px",
"base": "8px",
"md": "12px",
"lg": "16px",
"xl": "24px",
"2xl": "40px",
"3xl": "64px"
}

Form Control v1.3.6

  • πŸ› Fix issue where FormLabel could not be used without form-control.

Menu v1.6.2

  • πŸ› Fix issue where typeahead overrides input keydown.

React v1.6.2

  • πŸ› ChakraProvider now accepts the prop cssVarsRoot which defaults to :host, :root.

System v1.6.6

  • πŸ› Attach CSS vars to :host, :root to fix usage in shadow dom.

Transition v1.3.1

  • πŸ› Fix issue where onAnimationComplete is not forwarded to motion element.

04-05-2021#

@chakra-ui/react@1.6.1

Popover v1.7.0

  • πŸš€ Add an export for usePopoverContext hook.

Transition v1.3.0

  • πŸš€ Add support for tweaking the enter-exit transitions. Affected components: Fade, Slide, SlideFade, SlideScale, Collapse.
<Fade
transition={{
enter: { duration: 0.3 },
exit: { duration: 0.1 },
}}
/>
  • πŸš€ Fix issue where Collapse animation hide overflow when it expands. Collapse transition how shows overflow when it's expanded and hides overflow when it's collapsed.

  • πŸš€ Add support for delay prop for all transition components.

// as a number
<Fade delay={0.3} />
// or based on state (enter/exit only)
<Fade delay={{ enter: 0.2 }} />
// or both
<Fade delay={{ enter: 0.2, exit: 0.1 }} />

Note: this only works when you're using our built-in transition definition. If you're passing your own transition definition, pass the delay there.

// adding delay to your custom transition definition
<Fade
transition={{
enter: { duration: 0.2, delay: 0.1 },
}}
/>

Utils v1.8.0

  • πŸš€ Add types for the return value of pipe function.
  • πŸš€ Update user agent assertions.
  • πŸš€ Add walkObject helper to iterate over all keys including nested.

React Env v1.0.4

  • πŸ› Update mock window.

Menu v1.6.1

  • πŸ› Fix issue where closeOnSelect didn't work for menuitem options.

Modal v1.8.5

  • πŸ› Fix types for modal overlay fade config.

Slider v1.2.5

  • πŸ› Fix issue where onChangeStart doesnt get called.
  • πŸ› Fix issue where slider thumb remains tabbable when isDisabled={true}.
  • πŸ› Fix issue where onChangeEnd doesn't get called when you click anywhere on the track.

Styled System v1.10.5

  • πŸ› Refactored the creation of the theme css vars.

23-04-2021#

@chakra-ui/react@1.6.0

Gatsby Plugin v2.0.0

  • πŸ’₯ Upgrading to this new major version is recommended for everyone as it fixes hot reloading in Gatsby (Fast Refresh). In the previous version changes to the shadowed theme.js file didn't trigger automatic reloading, and a manual reload was necessary.

  • πŸ’₯ The isUsingColorMode option was removed. The ChakraProvider will always use the ColorModeProvider.

  • πŸ’₯ The isResettingCSS option was renamed to resetCSS. Those changes were made to use the current ChakraProvider and align the prop names.

Improvements

  • Use ChakraProvider instead of the outdated ThemeProvider pattern.
  • Add initialColorMode to the ColorModeScript.
  • Allow Fast Refresh reloading of all theme files.
  • Set stricter peerDependency on gatsby (to ^2.29.3 || ^3.0.0).

Accordion v1.3.0

  • πŸš€ Update tabs and accordion to use updated descendants logic.

Menu v1.6.0

  • πŸš€ Update menu to use new descendants logic.
  • πŸ› Fix issue where menu doesn't select menu item when the first item is disabled.
  • πŸ› Fix issue where menu doesn't work when an input is used within it.
  • πŸ› Fix issue where menu button doesn't work with truncated text.

Pin Input v1.6.0

  • πŸš€ Update pin-input to use the new descendants logic.

React v1.6.0 & Theme v1.8.4

  • πŸš€ The extendTheme function allows you to pass multiple overrides or extensions:
import {
extendTheme,
withDefaultColorScheme,
withDefaultSize,
withDefaultVariant,
withDefaultProps,
} from "@chakra-ui/react"
const customTheme = extendTheme(
{
colors: {
brand: {
// ...
500: "#b4d455",
// ...
},
},
},
withDefaultColorScheme({ colorScheme: "brand" }),
withDefaultSize({
size: "lg",
components: ["Input", "NumberInput", "PinInput"],
}),
withDefaultVariant({
variant: "outline",
components: ["Input", "NumberInput", "PinInput"],
}),
// or all in one:
withDefaultProps({
defaultProps: {
colorScheme: "brand",
variant: "outline",
size: "lg",
},
components: ["Input", "NumberInput", "PinInput"],
}),
// optional:
yourCustomBaseTheme, // defaults to our chakra default theme
)

Tabs v1.5.0

  • πŸš€ Update tabs and accordion to use updated descendants logic.
  • πŸš€ Add support for RTL keyboard navigation.

Utils v1.7.0

  • πŸš€ Add pipe function.
  • πŸš€ Add generic to isFunction guard.

Button v1.3.1

  • πŸ› Resolved an issue where the type prop of the Button component was set to undefined.

Progress v1.1.8

  • πŸ› Fix hyperlink to docs.

React Utils v1.1.2

  • πŸ› Update types for mergeRefs to include null.

Gatsby Starter Default v0.3.0

  • πŸš€ Updates to Gatsby-related documentation to account for the breaking changes made in PR #3841. The "Providers" section from the Gatsby guide was removed as the plugin itself handles everything already.

19-04-2021#

@chakra-ui/react@1.5.2

Button v1.3.0

  • πŸš€ Added spinnerPlacement prop to allow changing the spinner placement for the button when isLoading is true. Spinner placement can be either start or end.
<Button isLoading spinnerPlacement="end">
Click me
</Button>

Checkbox v1.5.0

  • πŸš€ Add isDisabled prop to CheckboxGroup.

Hooks v1.5.0

  • πŸš€ Add pan session hook usePanGesture for detecting pan gestures.
  • πŸš€ Update useLatestRef to inline value updates. Not concurrent mode safe but works for now.
  • πŸš€ Add useEventListenerMap to provide an elegant way of attaching several pointer event to the document or an element.

Menu v1.5.0 & Popover v1.6.0 & Tabs v1.4.0

  • πŸš€ This change restores the behavior of the isLazy prop (which was broken by the previous release) and adds a new lazyBehavior prop which configures the behavior of isLazy.

If you'd like the content of tab panel, popover and menu components to be unmounted when not selected or opened, please continue to use isLazy. This is the default behavior.

If you'd like the content of tab panel, popover and menu components to remain mounted (but hidden) after it was previously selected or opened, use lazyBehavior="keepMounted" in combination with isLazy.

Utils v1.6.0

  • πŸš€ Add lazy content utility for disclosure components like popover, menu, tab, etc.
  • πŸš€ Add pan session class to handle pan gestures. This is used in the slider logic and sharable with vue library.
  • πŸš€ Perfomance: Throttle pan move events to once per frame which improves the slider's onChange call performance.
  • πŸš€ Update types for internal pointer event.

React Env v1.0.2

  • πŸ› Fix bug where EnvProvider breaks SSR.

Modal v1.8.3 & Theme v1.8.3

  • πŸ› Fixed an issue where the modal exceeded the viewport height on iOS.

Slider v1.2.3

  • πŸ› Fix issue where slider doesnt work after first slide.
  • πŸ› Avoid exccess onChange calls.

Stat v1.1.7

  • πŸ› Fixed a11y issue related to StatHelpText. It was using an invalid dl child tag.

Styled System v1.10.3

  • πŸ› Fixed an issue where thtransition props are not resolved correctly.

13-04-2021#

@chakra-ui/react@1.5.1

Hooks v1.4.0

  • πŸš€ Add support for passing function that returns element to useEventListener and usePointerEvent.

Menu v1.4.0

  • πŸš€ Add closeOnSelect to MenuItem and MenuItemOption.
  • πŸ› Do not unmount menu list after first render.
  • πŸ› Use prop getter from use-popper to prevent ssr content jump.

Transition v1.2.0

  • πŸš€ Allow custom transition variants.

Button v1.2.2

  • πŸ› Fix alignment of icon inside button.
  • πŸ› Update button group styles to use rtl-friendly equivalent.

Clickable v1.1.2

  • πŸ› Add missing dependency issue of @chakra-ui/react-util.

Editable v1.1.2

  • πŸ› Update focus-on-mousedown util to avoid memory leak.

React Env v1.0.1

  • πŸ› Fix issue where window could be null Skip logic when environment prop is passed.

Input v1.2.2

  • πŸ› Remove unused padding-x from input element.

  • πŸ› Update input addon and element style handling.

Layout v1.4.2

  • πŸ› Fix RTL styles for OrderedList and UnorderedList.

Popover v1.5.1

  • πŸ› Fix RTL styles for close button.

  • πŸ› Do not unmount lazy popovers after first render.

  • πŸ› Update focus-onmousedown to avoid memory leak.

  • πŸ› Use prop-getters from use-popper to prevent ssr content shift.

Popper v2.1.1

  • πŸ› Update README for the popper.js wrapper.

Progress v1.1.6

  • πŸ› Fix an issue where CircularProgress with isIndeterminate doesn't show the indicator

React v1.5.1

  • πŸ› Fixed typing issues for extendTheme where variant overrides lead to an TS error.

  • πŸ› Add EnvironmentProvider to ChakraProvider for better window and document detection across hooks and components.

Spinner v1.1.6

  • πŸ› Fix issue where spinner base-style cant be overriden.

System v1.6.2

  • πŸ› Allow passing custom props to useStyleConfig.
  • πŸ› Add missing dependency issue of @chakra-ui/react-utils.

Tabs v1.3.2

  • πŸ› Do not unmount lazy tabs when unselected.

Theme v1.8.2

  • πŸ› Changes incorrect panel part name in Progress theme file to label.

  • πŸ› Update input, alert and tabs RTL styles.

Toast v1.2.3

  • πŸ› Fix RTL styles for toast component.

Tool tip v1.2.3

  • πŸ› Use prop-getters from use-popper to prevent ssr content shift.
  • πŸ› Add missing dependency issue of @chakra-ui/react-utils.

Utils v1.5.2

  • πŸ› update type signature for px function.

07-04-2021#

@chakra-ui/react@1.5.0

React v1.5.0

  • πŸš€ Bump package as minor.
  • πŸ› Resolved a peer dependency resolution issue reported by yarn2, npm7, and other more modern package managers.

Popover v1.5.0

  • πŸš€ Return prop getters for popover header and body and use ref callback to determine element's presense instead of useEffect. #3733

  • πŸš€ Add support for rootProps to PopoverContent to allow passing props to popover's positioner.

  • πŸš€ Make it possible to add custom motion variants so users can orchestrate custom transitions.

  • πŸš€ Move popover arrow shadow color computation to popover's theme.

  • πŸ› Update import of shared utils from react-utils to utils.

Popper v2.1.0

  • πŸš€ Add prop getters for popper and arrow for better ssr support.
  • πŸš€ Replace utils dependency with react-utils.

Table v1.2.0

  • πŸš€ Add TableContainer component to help tables scroll horizontally when overflowing.
<TableContainer>
<Table>
{...}
</Table>
</TableContainer>

Checkbox v1.4.1, Radio v1.3.1

  • πŸ› Update import of shared utils from react-utils to utils.
  • πŸ› Replace withFlushSync with scheduleMicrotask callback to prevent ReactDOM warning.

Form Control v1.3.1

  • πŸ› Refactor form label to use prop getter instead of hook for better consistency.
  • πŸ› Replace withFlushSync with scheduleMicrotask callback to prevent ReactDOM warning when an element us focused by calling .focus(). This works as well in concurrent mode.

Modal v1.8.1

  • πŸ› Resolved a peer dependency resolution issue reported by yarn2, npm7, and other more modern package managers.
  • πŸ› Omit scroll-behavior from drawer props.

Number Input v1.2.1

  • πŸ› Replace withFlushSync with scheduleMicrotask callback to prevent ReactDOM warning.

Progress v1.1.5

  • πŸ› Fix issue in safari where circular progress indicator shows a tiny bit when value is 0.

React Utils v1.1.1

  • πŸ› Update prop getter v2 type to take second parameter.
  • πŸ› Update import of shared utils from react-utils to utils.
  • πŸ› Replace withFlushSync with scheduleMicrotask callback to prevent ReactDOM warning.

Select v1.1.5

  • πŸ› Fix RTL styles for select field to use paddingEnd instead of pr.

Theme v1.8.1

Popover

  • πŸ› Moved maxW from popover's popper to content to allow for better control of the popover's width.
  • πŸ› Use width instead of maxW to allow users more control of popover's width.
  • πŸ› Use --popover-bg css property to control popover and arrow background.
<PopoverContent style={{ "--popover-bg": "purple" }}>
<PopoverArrow />
</PopoverContent>
  • πŸ› Add popover arrow shadow color.

Select

  • πŸ› Update select icon to use insetEnd instead of right for RTL.

Skip Link

  • πŸ› Update styles to use insetStart instead of left for RTL.

Table

πŸ› Update text align attribute to use end instead of right for RTL.

Theme Tools v1.1.3 & Transition v1.1.2

  • πŸ› Fix issue where warn doesn't get called.

Toast v1.2.2

  • πŸ› Take into account safe area insets for Toasts.

Tooltip v1.3.1

  • πŸ› Resolved a peer dependency resolution issue reported by yarn2, npm7, and other more modern package managers.

Utils v1.5.1

  • πŸ› Update import of shared utils from react-utils to utils.
  • πŸ› Replace withFlushSync with scheduleMicrotask callback to prevent ReactDOM warning.
  • πŸ› Import types for warn function.

30-03-2021#

@chakra-ui/react@1.4.2

Accordion v1.2.0

  • πŸš€ Extract all react based utilities and types to @chakra-ui/react-utils.

Avatar v1.2.0

  • πŸ› Fix RTL styles.

Checkbox v1.4.0

  • πŸš€ Add getRootProps to useCheckbox hook to manage props passed to checkbox container.

  • πŸš€ Forward onFocus, onBlur and aria-\* props to the input element for better integration with form libraries.

  • πŸš€ Ensure the checkbox works when the root element is not label. This helps to fix the current accessibility issues with the Switch component when wrapped within FormControl.

Counter v1.1.0

  • πŸš€ Expose setValue function to allow update state without calling onChange.
  • πŸ› Fix issue where onChange is called when value did not change.

Form Control v1.3.0

  • πŸš€ Refactor useFormControlProvider to return prop getters getHelpTextProps, getErrorMessageProps, and getRootProps.

  • πŸš€ Detect helper text and error message using ref callback instead of useLayoutEffect.

  • πŸš€ Update aria-describedby id to include feedbackId only when isInvalid is true.

  • πŸš€ Create useFormControlProps to provide a way to get the resolved form control props isInvalid, isDisabled, instead of HTML attributes. This will make it easier to integrate with number-input, checkbox, and switch.

  • πŸ› Fix concurrent mode issue with setting state in focus event handler. We use withFlushSync helper to achieve this.

Hooks v1.3.0

  • πŸ› useControllableState: The onChange callback will be called only if the new value isn't equal to the current one.

Layout v1.4.0

  • πŸ› Remove redundant role attribute from divider.

  • πŸ› Fixed the bug where a margin- bottom would get applied to direction=row of stack when using responsive props.

  • πŸ› Fix issue where AbsoluteCenter doesn't have position: absolute.

Number Input v1.2.0

  • πŸ› Forward aria-\* props to the input element.

  • πŸ› Fix issue where onChange was called on mount.

  • πŸ› Fix issue where onBlur was called twice.

  • πŸ› Memoize all callback props onFocus, onBlur, getAriaValueText.

  • πŸ› Refactor implicit useFormControl logic to be called from NumberInput instead.

  • πŸ› Call setFocused.on with ReactDOM.flushSync to prevent concurrent mode issue where setting state in onFocus affects onChange event handler.

Styled System v1.1.0

  • πŸš€ Add support for css variable tokens. This means you can create a css variable and reference value in the tokens.
<Box
sx={{
"--banner-color": "colors.red.200",
"& .banner": {
bg: "var(--banner-color)",
},
}}
/>

System v1.6.0

  • πŸ› Fixed an issue where the StylesProvider export was not working in every environment.

  • πŸš€ Add style config for upcoming rotateX, rotateY, scaleX, scaleY style props.

Theme v1.8.0

  • πŸš€ Remove 0 token value from spacing tokens. 0 maps to 0 and there's no need to create a css custom property for that.

Switch

  • Add container part
  • Use css vars to handle styles
  • Fix RTL styles

Stat, Table

  • Fix RTL styles

Utils v1.5.0

  • πŸš€ Add withFlushSync function wrapper to help resolve concurrent mode and onFocus state issues.

Toast v1.2.1

  • πŸ› Bump @reach/alert to fix yarn pnp issue.

21-03-2021#

@chakra-ui/react@1.4.1

Styled System v1.9.1

  • πŸ› Fix issue where textStyle doesn't get applied.

20-03-2021#

@chakra-ui/react@1.4.0

React v1.4.0

  • πŸš€ Added support for framer-motion v4.

Popper v2.0.0

  • πŸš€ Refactor the positioning logic to improve stability and leverage CSS custom properties.

Styled System v1.9.0

  • πŸ› Fix issue where responsive styles defined in text styles not overridden by style props.
  • πŸ› Fix issue where toCSSVars omitted the transition tokens.
  • πŸ› Fix issue where RTL property keys are incorrect due to config.property mutation.
  • πŸ› Added typings for the theme prop in ThemingPropsThunk and export a standalone type ThemeComponentProps. ThemingPropsThunk
  • πŸ› Update mx and px to use logical properties. Instead of mapping to marginLeft and marginRight, it maps to marginInlineStart and marginInlineEnd. Same for px.

CLI v1.3.0

  • πŸš€ Add support for text style and layer style theme type generation to @chakra-ui/cli.

Color Mode v1.1.2

  • πŸ› Memoize the context value for ColorModeProvider.

Editable v1.1.3

  • πŸ› Fix issue where blur/submit fires unexpectedly if submitOnBlur is true and you try to click the cancel button.

Radio v1.2.5

  • πŸ› Fix issue where controlled radio group can't be cleared.
  • πŸ› Fix onChange type for use-radio-group props.

Tag v1.1.3

  • πŸ› Add aria-label to tag close button.

Gatsby Plugin v1.0.2

  • πŸ› Update peer-dependency range for gatsby to support the latest.

Popover v1.3.0

  • πŸ› Fix issue (for Safari and Firefox) where popover doesn't close when you click the trigger and popover is open.

05-03-2021#

@chakra-ui/react@1.3.4

System v1.4.0

  • πŸš€ Add support for CSS Variables to the core of Chakra.
  • πŸš€ Improve style computation performance by 2.5x.
  • πŸš€ Adds support for main in chakra factory

Styled System v1.8.0

  • πŸš€ Add support for CSS Variables to the core of Chakra.
  • πŸš€ Improve style computation performance by 2.5x.

Theme v1.7.0

  • πŸš€ Add new config property cssVarPrefix to add a custom prefix for CSS variables. It defaults to chakra.
  • πŸš€ TabPanels component can now be styled from Tabs component theme, specifying the tabpanels part.
  • πŸ› Fix full size modal with y-overflowing content behaviour
  • πŸ› Fix border styles for alert and number input
  • πŸ› Provide proper typings for ThemeOverride.components.
  • πŸ› Resolved an issue where optgroup in dark mode was unreadable on browsers that allow select contents styling.

Theme Tools v1.1.0

  • πŸš€ Update implementation of create-breakpoints to reduce code logic. Add deprecation message

Hooks v1.1.5

  • πŸ› Add support to format - Optional string. Set the MIME type of what you want to copy as. Use text/html to copy as HTML, text/plain to avoid inherited styles showing when pasted into rich text editor.

Layout v1.3.2

  • πŸ› SimpleGrid: Avoid grid blow by adding minmax(0, 1fr).
  • πŸ› Simplify wrap style management to use CSS custom properties.

Popper v1.1.5

  • πŸ› Make the react-popper state in sync with the internal popper instance state

React v1.3.4

  • πŸ› Fixed an issue where extending the theme with custom breakpoints with strictNullChecks: false in tsconfig.json lead to an error.

Select v1.1.2

  • πŸ› Resolved an issue where optgroup in dark mode was unreadable on browsers that allow select contents styling.

Slider v1.1.2

  • πŸ› onChangeEnd won't be called if value doesn't change.

13-02-2021#

@chakra-ui/react@1.3.3

Color Mode v1.1.0

  • πŸš€ You can now customize the nonce of the <script> that ColorModeScript creates by passing nonce prop.

Focus Lock v1.1.0

Checkbox v1.2.3 & Radio v1.2.3

  • πŸ› Improve the semantic HTML structure of checkbox.

Popper v1.1.4

  • πŸ› The popper.js instance is now created only once it is actually needed for positioning.

React v1.3.3

  • πŸ› The extendTheme function uses the type Theme again.

Theme v1.6.2

  • πŸ› Export Recursive* types from theme, styled-system.
  • πŸ› Bring back the TS type Theme export and deprecated DefaultChakraTheme.
  • πŸ› Allow halved values in design token in spacing as mentioned in the documents.

CLI v1.2.1

  • πŸ› CLI tokens command now ignores TS errors in your theme file.

06-02-2021#

@chakra-ui/react@1.3.2

Pin Input v1.4.0

  • πŸš€ Resolved an issue where completing character entry in PinInput failed to call onComplete.

React v1.3.0

  • πŸš€ Introducing a generic TypeScript type ChakraTheme to improve the extendTheme function even further.
import { extendTheme } from "@chakra-ui/react"
export const customTheme = extendTheme({
// here you get autocomplete for
// - existing definitions from the default theme
// - new components (Single and MultiStyle)
// - CSS definitions
// - color hues
// - etc.
})
export type MyCustomTheme = typeof customTheme

You can get typesafe access to your custom theme like this:

import { useTheme } from "@chakra-ui/react"
import { MyCustomTheme } from "./my-custom-theme"
const MyComponent = () => {
const customTheme = useTheme<MyCustomTheme>()
//...
}
  • πŸ› Fixed issue in extendTheme where overrides defined as function replaced all base styles defined as a plain object.
  • πŸ› Fixed an issue where the TypeScript types were too narrow for component defaultProps and ComponentMultiStyleConfig.

Styled System v1.7.0

  • πŸš€ Theme Typings: Add autocomplete for negative space values.
  • πŸš€ Add support for textStyle and layerStyle in styled-system package. This makes it possible to use them in the component theme, css function and sx prop as well.
const theme = {
textStyles: {
caps: {
fontWeight: "bold",
fontSize: "24px",
},
},
}
const styles = css({ textStyle: "caps" })(theme)

This also works for the component theme as well.

layerStyle, textStyle and apply can now take responsive values as well.

  • πŸš€ Refactored apply prop handling to use the style config pattern instead of add it imperatively.
  • πŸ› Allow numbers for borderTop and provide autocomplete for fontWeight prop.
  • πŸ› Support negative scale values for css variables.

System v1.3.0

  • πŸš€ Add support for responsive values when using apply, textStyle and layerStyle.

Theme v1.6.0

  • πŸ› Fixed an issue where a Tooltip with negative gutter causes flickering on hover.
  • πŸ› Fixed an issue in Firefox where Input overflows it's flex container.

CLI v1.2.0

  • πŸš€ Theme Typings: Add autocomplete for negative space values

Accordion v1.1.2 & Avatar v1.1.2 & Button v1.1.2 & Checkbox v1.2.2 & Radio v1.2.2

  • πŸ› Provide better typings for size and variant for AvatarGroup, CheckboxGroup, ButtonGroup, and RadioGroup

Color Mode v1.0.7

  • πŸ› Fix issue where reading from localStorage maybe fail due to several reasons (SecurityError, Uncaught DOMException, TypeError, etc.)

Input v1.1.1

  • πŸ› Fixed the typo in InputProps interface due to which theming types were not correct.

Tool tip v1.1.1

  • πŸ› Fixed an issue where a Tooltip with negative gutter causes flickering on hover.

31-01-2021#

@chakra-ui/react@1.2.1

System v1.2.1

  • πŸ› Allow string values for ThemingProps['colorScheme']

CLI v1.1.0

  • πŸš€ Add minor bump for adding subcommand tokens to generate Theme Typings & Republished with version 1.1.0.

31-01-2021#

@chakra-ui/react@1.2.0

Color Mode v1.0.6

  • πŸ› useColorModeValue defaults to light mode on first render if system color mode is used.

Hooks v1.1.3

  • πŸ› Update reference to document.addEventListener to detect owner document based on ref passed. This would help detect outside click currently from within an iframe.

Layout v1.3.0

  • πŸš€ Update transform style for AbsoluteCenter when axis is both
  • πŸš€ Add shouldWrapChildren to Wrap component to make it possible use Wrap directly without thinking about WrapItem.
  • πŸš€ Update LinkBox and LinkOverlay components and make them public in docs.

Menu v1.1.0

  • πŸš€ The MenuItem now accepts a commandSpacing prop that can be used to adjust the space between the command and label.
  • πŸš€ Add support rootProps to MenuList so it's possible override the styles for root container for menu list. Common use case is to change the applied zIndex of the menulist.
  • πŸš€ Make it possible to override zIndex by passing props to MenuList.

Modal v1.5.0 & Tool tip v1.1.0

  • πŸš€ Add support for forwarding props to the underlying Portal component. Pass the portalProps prop to achieve this.
  • πŸš€ containerRef: ref for the element where to mount the portal.
  • πŸš€ appendToParentPortal: If false, it'll opt out of portal nesting.

Portal v1.1.0

  • πŸš€ Add support for appendToParentPortal={false} to opt out of nested portals.
  • πŸ› Fix issue with portal zIndex container where it renders elements outside of view.
  • πŸš€ Renamed getContainer prop to containerRef to make it possible to pass the ref directly. This affects the Modal component primarily.

Styled System v1.6.0

  • πŸ› Fix issue where CSS color names are not passed correctly.
  • πŸš€ Improved theme typing in order to provide a better autocomplete experience.

Tabs v1.1.0

  • πŸš€ The useTabsContext hook is now exported and can be used in user land.

Theme v1.5.0

  • πŸš€ Add 8xl to size tokens.

24-01-2021#

@chakra-ui/react@1.1.6

Layout v1.2.0

  • πŸš€ Add AbsoluteCenter component to help manage centering of an element relative to its parent dimensions

Pin Input v1.2.0

  • πŸš€ Added an otp flag to PinInput that sets the autoComplete value of PinInputField to "one-time-code"

Hooks v1.1.2

  • πŸ› Fixed issue where using an uncontrolled RadioGroup without a defaultValue causes multiple radio options can be selected

Portal v1.0.6

  • πŸ› Fixed portal z-index wrapper squashing portaled elements

Popover v1.1.0

  • πŸš€ Add flip prop to Popover to change the placement when it is scheduled to overflow a given boundary

17-01-2021#

@chakra-ui/react@1.1.5

Popper v1.1.0

  • πŸš€ Added enabled property to usePopper. Popper won't be updated while it is set to false. Menu now uses this option to not update its position while it's closed.

Stlyed System v1.5.0

  • πŸš€ Move srOnly prop to styled system props. This will deprecate the need for the visually hidden package. Less is more!
// If `true`, hide an element visually without hiding it from screen readers.
<Box srOnly>Visually hidden</Box>
// If `focusable`, the sr-only styles will be undone, making the element visible to sighted users as well as screen readers.
<Box srOnly _active={{ srOnly: "focusable" }}>Visually hidden but shown on focus
</Box>
  • πŸš€ Add polyfill for inset style prop as the CSS inset doesn't work in Safari Add missing style props for grid and flex layouts: gridTemplate, gridRowStart, gridRowEnd, flexFlow, clipPath

Checkbox v1.1.2

  • πŸ› Update styles to use css logical style props

Hooks v1.1.1

  • πŸ› Resolved an issue where event handlers for certain components were removed after the first event occurred.
  • πŸ› Fixed SSR issue with useId hook.

Menu v1.0.5

  • πŸ› Update styles to use css logical style props
  • πŸš€ Added enabled property to usePopper. Popper won't be updated while it is set to false. Menu now uses this option to not update its position while it's closed.

Popover v1.0.7

  • πŸ› Popover now won't update its popper position while it's closed.

Portal v1.0.5

  • πŸ› Fixed issue where adding portalZIndex to ChakraProvider makes app unusable

Progress v1.0.5

  • πŸ› You can now override linear progress component's border radius in the theme.

Radio v1.1.2

  • πŸ› Update styles to use css logical style props.

11-01-2021#

@chakra-ui/react@1.1.4

Hooks v1.1.0

  • πŸš€ Added useCallbackRef hook for persisting a value between renders and updating it if it changes.
  • πŸ› Deprecated useLatestRef, useEventCallback, and useMouseDownRef. These functions will be removed in a future major version.

10-01-2021#

@chakra-ui/react@1.1.3

Styled System v1.4.0

  • πŸ› Fixed a bug where rgb values in bgGradient did not work correctly
  • πŸ› Due to Safari not support css logical properties for right, and left, we added polyfill for these css logical properties.
  • πŸš€ Add support for css media query and dark class selectors.

Theme v1.4.0

  • πŸš€ Add the 2xl breakpoint to the theme which maps to 96em or 1536px.

Media Query v1.0.3

  • πŸ› Fixed useBreakpoinValue infinite loop due to bug in createMediaQueries.

Portal v1.0.3

  • πŸ› Fixed issue where elements within portal used in an iframe got rendered outside of the iframe. Portal now smartly detects its document owner and attaches its node to the correct document.body
  • πŸ› Removed extra DOM node PortalManager creates. Less is more!

Skeleton v1.0.7

  • πŸ› Fixed a bug where SkeletonText kept its fixed dimensions when isLoaded is true.

Tabs v1.0.4

  • πŸ› Fixed issue where Tab button no longer has aria-selected="false" when it is inactive.

03-01-2021#

@chakra-ui/react@1.1.1

Button v1.0.3

  • πŸ› Update the style props applied for leftIcon and rightIcon to support RTL. Changed ml and mr to marginStart and marginEnd respectively.
  • πŸ› Update the style props applied when isLoading is true. Changed marginRight to marginEnd.

Stack

  • πŸ› Update directionStyles to use logical CSS properties for RTL support.
  • πŸ› Changed marginLeft and marginRight to marginStart and marginEnd respectively.

Styled System v1.3.1

  • πŸ› Add missing borderStart, and borderEnd types for for style and color.
  • πŸ› Sort Object.assign keys in configs/border.ts for better readability.

Other RTL fixes:

  • πŸ› Alignment for the close icon for Tag, Modal, and Drawer components to support RTL.
  • πŸ› Add RTL storybook toolbar to make it easy to test RTL layouts.

28-12-2020#

@chakra-ui/react@1.1.0

React v1.1.0

Checkbox v1.1.0

  • πŸš€ Deprecated the defaultIsChecked prop in favor of defaultChecked.

Radio v1.1.0

  • πŸš€ Deprecated the defaultIsChecked prop in favor of defaultChecked.
  • πŸš€ Resolved an issue where uncontrolled Radio components used outside of RadioGroup were not working.

Styled System v1.3.0

  • πŸš€ Improved performance

Pin Input v1.1.2

  • πŸ› Resolved an issue where PinInputField rendered an input with autocomplete="not-allowed" instead of autocomplete="off".

Skeleton v1.0.4

  • πŸ› SkeletonText now accepts the props fadeDuration and speed and animates its children, like the Skeleton component.

18-12-2020#

@chakra-ui/react@1.0.4

⚠️ Peer dep version bump! framer-motion is now at 3.0.0

Form Control v1.1.0

  • πŸš€ Add support for controlling focus lock across frames.
  • πŸ› Removed isLoading prop from FormControl out of a lack of need.
  • πŸ› Fixed an issue where FormHelperText was not rendering when parent FormControl.isInvalid was set.

Modal v1.3.0

  • πŸš€ Add support for controlling focus lock across frames.

Styled System v1.2.0

  • πŸš€ Add suppotr for css logical properties and direction in the theme for future RTL optimizations.

Pin Input v1.1.1

  • πŸ› Fixed an issue where copy pasting didnt work.

Number Input v1.0.3

  • πŸ› Fixed an issue where input didnt work with form libraries that rely on ref (e.g. react-hook-form).
  • πŸš€ Added support to override type and pattern props.

Input v1.0.3

  • πŸ› Fixed an issue where removing an element didnt reset the padding.

Skeleton v1.0.3

  • πŸ› Fixed an issue where Skeleton.isLoading would fade the skeleton even if isLoading is true.

Theme v1.2.2

  • πŸ› Focus outline > isInvalid outline (affects all components extending from Input, e.g. Select, PinInput, ...)

Utils v1.0.2

  • πŸ› Custom breakpoints beginning with a number are now working

08-12-2020#

@chakra-ui/react@1.0.3

Pin Input v1.1.0

  • πŸš€ Internals reworked.
  • πŸš€ Added support for type prop (alphanumeric | number).
  • πŸš€ Added mask prop to provide similar utility like input type password.

Alert v1.0.2

  • πŸ› Alert now colorScheme aware (overrideable via status).

Close Button v1.0.2

  • πŸ› Resolved an issue where DrawerCloseButton was not receiving its base styles when it was passed other styles through the __css property, breaking the button's positioning.

React v1.0.3

  • πŸ› Fix too narrow TypeScript type for theme override.

03-12-2020#

@chakra-ui/react@1.0.2

Docs

Layout v1.1.0

  • πŸš€ Divider, Container, List, ListItem and ListIcon are now themable.

Modal v1.2.0

  • πŸš€ ModalCloseButton is now themable.

Theme v1.2.0

  • πŸš€ AlertIcon no longer shrinks if alert contains long text.
  • πŸš€ Added theme support for above mentioned layout components.

Toast v1.1.0

  • πŸš€ Allow React.ReactNode as type for title.

Form Control v1.0.2

  • πŸ› Remove dead props on type.

Number Input v1.0.2

  • πŸ› NumberInput is now form-control props agnostic, like Input and Select do.

Radio v1.0.2

  • πŸ› Radiois now form-control props agnostic, like Input and Select do.

React v1.0.2

  • πŸ› Improved types for extendTheme.

Transition v1.0.2

  • πŸ› Children now consistently render if "in" was true on initial render.
Edit this page

Proudly made inNigeria by Segun Adebayo

Deployed by β–² Vercel