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
istrue
, the system's color mode will be used as default and we'll fallback to theinitialColorMode
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 forchakra-ui-color-mode
, this will be used.if
initialColorMode
is set tosystem
, the system's color mode will be used as default and we'll fallback to theinitialColorMode
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
react-focus-lock@2.5.1
includes a dependency update offocus-lock
from0.8.1
->0.9.1
. The change infocus-lock
includes a fix for performance in JSDOM: https://github.com/theKashey/focus-lock/pull/24
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 inpeerDependency
Radio v1.3.13
- Improve types defined for
getRadioprops
Checkbox v1.5.10
- Allow usage of
framer-motion
5.x inpeerDependency
Menu v1.7.8
- Allow usage of
framer-motion
5.x inpeerDependency
Modal v1.9.4
- Allow usage of
framer-motion
5.x inpeerDependency
Popover v1.9.1
- Allow usage of
framer-motion
5.x inpeerDependency
Theme v1.11.1
- Allow usage of
framer-motion
5.x inpeerDependency
Toast v1.3.4
- Allow usage of
framer-motion
5.x inpeerDependency
Tooltip v1.3.14
- Allow usage of
framer-motion
5.x inpeerDependency
Transition v1.3.8
- Allow usage of
framer-motion
5.x inpeerDependency
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 intocreatePopper
definition. This allows memoized modifiers to work correctly in user-land when used withuseCallback
.
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 theBreadcrumbLink
if the parentBreadcrumbItem
hasisCurrentPage
prop set totrue
. Such aBreadcrumbLink
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
'sonOpen
andonClose
callbacks. The fix is to wrap the callbacks inuseCallbackRef
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 WCAG4.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 likeuseToken('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 fromusePanSession
toPanSession
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
isfalse
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
andRangeSlider*
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 checkboxcontainer
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 defaultisReversed
property when theorientation
ishorizontal
Modal v1.9.0
- Drawer: Add support for RTL-aware placement values. You can now pass
start
andend
values. The drawer will useleft/right
placement depending on the specifiedtheme.direction
value. - Drawer: omit the
motionPreset
prop type sinceDrawer
only implements theSlide
transition, unlikeModal
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 afallback
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 adirection
prop so it can handle placement for RTL languages. Values such astop-start
,top-end
,bottom-start
andbottom-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 theImage
component
Toast v1.3.0
- Add support for RTL-aware
position
values. You can now usetop-start
,top-end
,bottom-start
andbottom-end
values. The toast will flip depending on thedirection
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'smotion
factory breaks animation/transition
Select v1.1.15
- The disabled state of the
SelectIcon
can be reflected by a disabledFormControl
or by theisDisabled
-flag of theselect
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 avoidType 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 theSliderTrack
without dragging theDragHandle
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 varscalc
- function that makes it easy to create the css calc stringanatomy
- 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 themeconst baseStyle: PartsStyle<typeof newBtn> = {// auto-complete for the component partsicon: {...},label: {...}}
Added PartsStyleObject
and PartStyleFunction
types for easy creation of
type-safe, multipart component styles.
Radio v1.3.10
- Add
isDisabled
toRadioGroup
to make it possible to disable allRadio
insideRadioGroup
- Add
isFocusable
toRadioGroup
to make it possible to define thefocusable
-state for allRadio
inside aRadioGroup
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 theuseOutsideClick
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"
tobaseStyle
ofTagLabel
to avoid clipped text
09-08-2021#
@chakra-ui/react@1.6.6
Form Control v1.4.0
- π Added a
container
part to theFormControl
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` elementcontainer: {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<HeadingbgImage="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 adefaultBreakpoint
as the second argument to support SSR/SSG.
Styled System v1.12.0
- π Added the
_activeStep
pseudoselector which is applied whenaria-current="step"
. See thewai-aria
documentation
System v1.7.0
- π The
styled
function allows a functionalbaseStyle
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.jsimport { extendTheme } from "@chakra-ui/react"const theme = extendTheme({})// as default exportexport default theme// as named exportexport { 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'stitle
ordescription
by addingmaxWidth="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
, andringOffsetColor
.
// 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
, andscale
.
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
, andbgBlendMode
props to apply blend modes to elements.Automatic wrapping of
backgroundImage
orbgImage
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
oroutline:none
and usingbox-shadow
for focus outlines don't work in high-contrast mode.To fix this, we've added
outline: 2px solid transparent
whenever you setoutline:0
to make your components work in high-constrast mode by default.
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
, andoverscrollY
style prop to manage overscroll behavior of an container.
Theme v1.9.0
- π Add blur token values for
filter
andbackdropFilter
.
{"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 propcssVarsRoot
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
.
<Fadetransition={{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<Fadetransition={{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. TheChakraProvider
will always use theColorModeProvider
.π₯ The
isResettingCSS
option was renamed toresetCSS
. Those changes were made to use the current ChakraProvider and align the prop names.
Improvements
- Use
ChakraProvider
instead of the outdatedThemeProvider
pattern. - Add
initialColorMode
to theColorModeScript
. - Allow Fast Refresh reloading of all theme files.
- Set stricter
peerDependency
ongatsby
(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 theButton
component was set toundefined
.
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 whenisLoading
istrue
. Spinner placement can be eitherstart
orend
.
<Button isLoading spinnerPlacement="end">Click me</Button>
Checkbox v1.5.0
- π Add
isDisabled
prop toCheckboxGroup
.
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 thedocument
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 newlazyBehavior
prop which configures the behavior ofisLazy
.
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 invaliddl
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
andusePointerEvent
.
Menu v1.4.0
- π Add
closeOnSelect
toMenuItem
andMenuItemOption
. - π 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
withisIndeterminate
doesn't show the indicator
React v1.5.1
π Fixed typing issues for
extendTheme
where variant overrides lead to an TS error.π Add
EnvironmentProvider
toChakraProvider
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 inProgress
theme file tolabel
.π 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
toPopoverContent
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
toutils
.
Popper v2.1.0
- π Add prop getters for popper and arrow for better ssr support.
- π Replace
utils
dependency withreact-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
toutils
. - π Replace
withFlushSync
withscheduleMicrotask
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
withscheduleMicrotask
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
withscheduleMicrotask
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
toutils
. - π Replace
withFlushSync
withscheduleMicrotask
callback to prevent ReactDOM warning.
Select v1.1.5
- π Fix RTL styles for select field to use
paddingEnd
instead ofpr
.
Theme v1.8.1
Popover
- π Moved
maxW
from popover'spopper
tocontent
to allow for better control of the popover's width. - π Use
width
instead ofmaxW
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
toutils
. - π Replace
withFlushSync
withscheduleMicrotask
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
touseCheckbox
hook to manage props passed to checkbox container.π Forward
onFocus
,onBlur
andaria-\*
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 callingonChange
. - π Fix issue where
onChange
is called when value did not change.
Form Control v1.3.0
π Refactor
useFormControlProvider
to return prop gettersgetHelpTextProps
,getErrorMessageProps
, andgetRootProps
.π Detect helper text and error message using ref callback instead of
useLayoutEffect
.π Update
aria-describedby
id to include feedbackId only whenisInvalid
is true.π Create
useFormControlProps
to provide a way to get the resolved form control propsisInvalid
,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
withReactDOM.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.
<Boxsx={{"--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
andpx
to use logical properties. Instead of mapping tomarginLeft
andmarginRight
, it maps tomarginInlineStart
andmarginInlineEnd
. Same forpx
.
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>
thatColorModeScript
creates by passingnonce
prop.
Focus Lock v1.1.0
- π Upgrade to react-remove-scroll@2.4.1 and react-focus-lock@2.5.0 to fix React 17 peer dependencies compatibility.
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 theextendTheme
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
andlayerStyle
in styled-system package. This makes it possible to use them in the component theme,css
function andsx
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 forfontWeight
prop. - π Support negative scale values for css variables.
System v1.3.0
- π Add support for responsive values when using
apply
,textStyle
andlayerStyle
.
Theme v1.6.0
- π Fixed an issue where a
Tooltip
with negativegutter
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
andvariant
forAvatarGroup
,CheckboxGroup
,ButtonGroup
, andRadioGroup
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 negativegutter
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
andLinkOverlay
components and make them public in docs.
Menu v1.1.0
- π The
MenuItem
now accepts acommandSpacing
prop that can be used to adjust the space between the command and label. - π Add support
rootProps
toMenuList
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 toMenuList
.
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 tocontainerRef
to make it possible to pass the ref directly. This affects theModal
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 toPinInput
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
toChakraProvider
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
, anduseMouseDownRef
. 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 inbgGradient
did not work correctly - π Due to Safari not support css logical properties for
right
, andleft
, 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 to96em
or1536px
.
Media Query v1.0.3
- π Fixed
useBreakpoinValue
infinite loop due to bug increateMediaQueries
.
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
andrightIcon
to support RTL. Changedml
andmr
to marginStart and marginEnd respectively. - π Update the style props applied when isLoading is
true
. ChangedmarginRight
tomarginEnd
.
Stack
- π Update
directionStyles
to use logical CSS properties for RTL support. - π Changed
marginLeft
andmarginRight
tomarginStart
andmarginEnd
respectively.
Styled System v1.3.1
- π Add missing
borderStart
, andborderEnd
types for for style and color. - π Sort
Object.assign
keys inconfigs/border.ts
for better readability.
Other RTL fixes:
- π Alignment for the close icon for
Tag
,Modal
, andDrawer
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
- π Add gradient support to chakra style props β¨ see https://chakra-ui.com/docs/features/gradient for more information
- π Add rtl support β¨ see https://chakra-ui.com/docs/features/rtl-support for more information
- π Improve
extendTheme
typings & accept optional second argumentbaseTheme
.
Checkbox v1.1.0
- π Deprecated the
defaultIsChecked
prop in favor ofdefaultChecked
.
Radio v1.1.0
- π Deprecated the
defaultIsChecked
prop in favor ofdefaultChecked
. - π 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 ofautocomplete="off"
.
Skeleton v1.0.4
- π
SkeletonText
now accepts the propsfadeDuration
andspeed
and animates its children, like theSkeleton
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
andpattern
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
- π The search functionality has returned! https://chakra-ui.com/
Layout v1.1.0
- π
Divider
,Container
,List
,ListItem
andListIcon
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
- π
Radio
is 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.