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.
06-04-2022#
@chakra-ui/react@1.8.8
Menu v1.8.11
- Fix issue where menu items cannot type
type=submit - Fix issue where Create React App template fails with newer versions of
framer-motion
Editable v1.4.2
- Fix issue where editable preview remains interactive even when
isDisabled: trueis passed.
Form Control v1.6.0
- Introduced
optionalIndicatorforFormLabel
Similar to the RequiredIndicator the OptionalIndicator signalizes when a
field is optional.
Hooks v1.9.1
- Improve stability of
useBooleanhook to ensure setter object reference stays the same
Checkbox v1.7.1
- Fix issue where Create React App template fails with newer versions of
framer-motion - Fix radio cursor when disabled
Layout v1.8.0
- Add support for vertical and horizontal spacing options in the Wrap component.
<Wrap spacingX="2" spacingY="4"><Box /><Box /><Box /><Box /></Wrap>
Falls back to the
spacingprop for by default
Theme v1.14.1
- Fix radio cursor when disabled
Transition v1.4.8
- Fix intermittent Collapse component overflow initial/hidden issue
25-03-2022#
Tabs v1.6.9
- Add height & width to the TabIndicator transition properties
Checkbox v1.7.0
- Add support for passing
inputPropsto underlying input element
Radio v1.5.0
- Add support for passing
inputPropsto underlying input element - Add type for state returned by use-radio hook
Editable v1.4.1
- Call
setPrevValueonFocusto avoid an outdated prev value when the field is controlled
Layout v1.7.8
- Fix buttons zIndex within LinkBox and usage of LinkOverlay
- Remove
noreferrerattribute from link component
Styled System v1.19.0
- Updated
_darkand_lightpseudo selectors to allow semantic tokens to change with thedata-themeattributes. - Added
numbertype for text underline offset of text decoration props
Toast v1.5.8
- use default options as well when providing options to useToast
Hooks v1.9.0
- Control whether Tooltip can be closed with Esc key
Tooltip v1.5.0
- Control whether Tooltip can be closed with Esc key
System v1.12.0
- Added
[data-theme]to the CSS variables root selector. This allows the semantic tokens to change according todata-theme="dark"anddata-theme="light"DOM element attributes.
Modal v1.11.0
- Add
onCloseCompleteprop to Modal which is called when all DOM nodes of theModalare removed.
28-02-2022#
Anatomy v1.3.0
- Add
textareapart toeditableAnatomy
Cli v1.9.0
- The CLI tokens command now includes semantic tokens in the generated ThemeTypings
Editable v1.4.0
- Added the component
EditableTextareatoEditable. Use the textarea element to handle multi line text input in an editable context.
<Editable defaultValue="Change me" onChange={console.log}><EditablePreview /><EditableTextarea /></Editable>
Layout v1.7.7
- Fixed zIndex in LinkOverlay so that content in LinkBox can have an opacity below 1
Color Mode v1.4.6
- Adds a runtime safeguard for
ColorModeScript.
Theme v1.14.0
- Add styles for new
textareaelement inEditable
Media Query v2.0.4
-
Fixed an issue that undefined is returned when calling the hook
useBreakpointwithdefaultValuespecified in SSR -
Fixed an issue where the value of
useBreakpointValuein CSR did not match SSR.
Hooks v1.8.5
- Fixed an issue where the prop
isLazydid not work as expected. This was achieved by updating the hookuseAnimationState.
Popover v1.11.7
- Fixed an issue where the prop
isLazydid not work as expected. This was achieved by updating the hookuseAnimationState.
Menu v1.8.9
- Fixed bug where passing
nullas value oficonprop inMenuOptionItemstill rendered the icon.
20-02-2022#
@chakra-ui/react@1.8.5
Bumped patch version for every package to fix release process. Root cause was a bug in our CI configuration.
20-02-2022#
Switch v1.3.6
- Fixed a UI issue where the Switch component rendered a few pixels off the baseline.
Media Query v2.0.2
- Added props descriptions to Show / Hide components
- Fixed an issue where the hook
useBreakpointdid not update after the first page load. - Fixed an issue where the
useBreakpointValuehook did not work as expected with custom breakpoints
Checkbox v1.6.6
- Add
FormControlsupport foruseCheckbox
Styled System v1.18.0
- Modify theme types to make it possible to customize token types via TypeScript module augmentation and declaration merging in addition to allowing customization via the Chakra CLI.
This makes it possible to do the following:
- Distribute custom types with a component library based on Chakra
- Customize theme types by hand
- Version control your theme types
To customize themes using the new mechanism, augment the CustomThemeTypings
type in a definitions file such as types/chakra.d.ts:
⚠️ NOTE: your
CustomThemeTypingsmust implement/extendBaseThemeTypings, otherwise the types will fall back to the default Chakra types (or custom output from @chakra-ui/cli)
import { BaseThemeTypings } from "@chakra-ui/styled-system";type DefaultSizes = 'small' | 'medium' | 'large';declare module "@chakra-ui/styled-system" {export interface CustomThemeTypings extends BaseThemeTypings {// Example custom `borders` tokensborders: 'none' | 'thin' | 'thick';// ...// Other custom tokens// ...components: {Button: {// Example custom component sizes and variantssizes: DefaultSizes;variants: 'solid' | 'outline' | 'wacky' | 'chill';};// ...}}
Utils v1.10.3
- Fixed an issue where
queryString()created invalid media queries when min and max were set.
Modal v1.10.8
- Fix
useAriaHiddenhook dependency to make it work as expected
Icon v2.0.4
- Add missing word in comment of
CreateIconOptions
System v1.11.0
- Allow all
JSX.IntrinsicElementsfor the chakra factory. This allows to use every DOM element with the shorthand version:
<chakra.header>Header</chakra.header><chakra.main>Main</chakra.main><chakra.footer>Many more</chakra.footer>
Tag v1.2.6
- Change order of aria-label prop on TagCloseButton to be over-writable
Anatomy v1.2.4
- Add a new multi style part
rootto the Accordion component. It is applied to the topmost DOM element.
Accordion v1.4.7
- Add a new multi style part
rootto the Accordion component. It is applied to the topmost DOM element.
Theme v1.13.3
- Add a new multi style part
rootto the Accordion component. It is applied to the topmost DOM element.
05-02-2022#
@chakra-ui/react@1.8.3
- fixed an issue where the release process was not working
05-02-2022#
@chakra-ui/react@1.8.2
- allow framer motion v6 as peer dependency
Input v1.4.0
- Add new prop
htmlSizetoInputto allow the usage of the native input attributesize. - Apply theme styles for
InputLeftElementandInputRightElement.
Media Query v2.0.0
- Support useMediaQuery for older browsers. Conditionally check if the MediaQueryList object supports the addEventListener() method, else fallback to the legacy .addListener() method.
Cli v1.8.0
- Fixed an internal version number mismatch
- When the
Chakra CLI fails
to generate theme typings, it now exits with a status code of
1. This resolves an issue where failures exited with a success status code. - Increased scan depth for tokens in cli tooling
Tooltip v1.4.5
- Fix an issue where arrow tooltip background color only consider bg props. It
considers
bg,background,bgColorandbackgroundColornow. - allow framer motion v6 as peer dependency
Accordion v1.4.5
- allow framer motion v6 as peer dependency
- Add missing peer dependencies
Checkbox v1.6.4
- allow framer motion v6 as peer dependency
- Fixing a bug that happens when using the useCheckboxGroup hook with number values instead of string values
Menu v1.8.5
- allow framer motion v6 as peer dependency
Modal v1.10.6
- allow framer motion v6 as peer dependency
Popover v1.11.3
- allow framer motion v6 as peer dependency
Switch v1.3.4
- allow framer motion v6 as peer dependency
- Add missing peer dependencies
Toast v1.5.3
- allow framer motion v6 as peer dependency
- Fixed an issue where the
useToastfunction returned a new object on every render.
Transition v1.4.4
- allow framer motion v6 as peer dependency
Utils v1.10.1
- Fixing a bug that happens when using the useCheckboxGroup hook with number values instead of string values
System v1.10.2
- Disallow props that do not exist in the prop interface
Form Control v1.5.5
- Remove redundant
useMemofromFormControl
Anatomy v1.2.2
- Add missing peer dependencies
Skeleton v1.2.8
- Add missing peer dependencies
26-01-2022#
Color Mode v1.4.1
- Fixed an issue where the ColorModeScript tried to access a non-existent variable
25-01-2022#
@chakra-ui/react@1.8.0
Number Input v1.4.0
- Add support for custom
format,parseand character validation callbacks. - Fix issue where number input doesn't leave the spinning state when inc/dec button is disabled
Styled System v1.17.0
- Introducing semantic tokens
Semantic tokens provide the ability to create css variables which can change with a CSS condition.
import { ChakraProvider, extendTheme } from "@chakra-ui/react"const customTheme = extendTheme({colors: {900: "#171923",},})const App = () => (<ChakraProvider theme={customTheme}><Text color="gray.900">will always be gray.900</Text></ChakraProvider>)
import { ChakraProvider, extendTheme } from "@chakra-ui/react"const customTheme = extendTheme({colors: {50: "#F7FAFC",900: "#171923",},semanticTokens: {colors: {text: {default: "gray.900",_dark: "gray.50",},},},})const App = () => (<ChakraProvider theme={customTheme}><Text color="text">will be gray.900 in light mode and gray.50 in dark mode</Text></ChakraProvider>)
import { extendTheme } from "@chakra-ui/react"const theme = extendTheme({colors: {red: {100: "#ff0010",400: "#ff0040",500: "#ff0050",700: "#ff0070",800: "#ff0080",},},semanticTokens: {colors: {error: "red.500", // create a token aliassuccess: "red.100",primary: {// set variable conditionally with pseudo selectors like `_dark` and `_light`// use `default` to define fallback valuedefault: "red.500",_dark: "red.400",},secondary: {default: "red.800",_dark: "red.700",},},},})
- Updated the
_placeholderShownselector - Export TypeScript types ResponsiveObject and ResponsiveArray
Theme v1.13.0
- Introducing semantic tokens
Semantic tokens provide the ability to create css variables which can change with a CSS condition.
import { ChakraProvider, extendTheme } from "@chakra-ui/react"const customTheme = extendTheme({colors: {900: "#171923",},})const App = () => (<ChakraProvider theme={customTheme}><Text color="gray.900">will always be gray.900</Text></ChakraProvider>)
import { ChakraProvider, extendTheme } from "@chakra-ui/react"const customTheme = extendTheme({colors: {50: "#F7FAFC",900: "#171923",},semanticTokens: {colors: {text: {default: "gray.900",_dark: "gray.50",},},},})const App = () => (<ChakraProvider theme={customTheme}><Text color="text">will be gray.900 in light mode and gray.50 in dark mode</Text></ChakraProvider>)
import { extendTheme } from "@chakra-ui/react"const theme = extendTheme({colors: {red: {100: "#ff0010",400: "#ff0040",500: "#ff0050",700: "#ff0070",800: "#ff0080",},},semanticTokens: {colors: {error: "red.500", // create a token aliassuccess: "red.100",primary: {// set variable conditionally with pseudo selectors like `_dark` and `_light`// use `default` to define fallback valuedefault: "red.500",_dark: "red.400",},secondary: {default: "red.800",_dark: "red.700",},},},})
- refactoring(theme): Simplify exports
- Add entrypoints to the different parts of the theme (colors, fonts, components, spacing, etc.)
// Now you can use only colors from the themeimport colors from "@chakra-ui/theme/foundations/colors"
Here's a table of the theme parts and entrypoints
| Part | Entrypoint |
|---|---|
| components | "@chakra-ui/theme/components" |
| foundations | "@chakra-ui/theme/foundations" |
| colors | "@chakra-ui/theme/foundations/colors" |
| sizes | "@chakra-ui/theme/foundations/sizes" |
| spacing | "@chakra-ui/theme/foundations/spacing" |
| typography | "@chakra-ui/theme/foundations/typography" |
| radius | "@chakra-ui/theme/foundations/radius" |
| shadows | "@chakra-ui/theme/foundations/shadows" |
| transition | "@chakra-ui/theme/foundations/transition" |
| zIndex | "@chakra-ui/theme/foundations/z-index" |
| blur | "@chakra-ui/theme/foundations/blur" |
| borders | "@chakra-ui/theme/foundations/borders" |
Color Mode v1.4.0
- Introducing semantic tokens
Semantic tokens provide the ability to create css variables which can change with a CSS condition.
import { ChakraProvider, extendTheme } from "@chakra-ui/react"const customTheme = extendTheme({colors: {900: "#171923",},})const App = () => (<ChakraProvider theme={customTheme}><Text color="gray.900">will always be gray.900</Text></ChakraProvider>)
import { ChakraProvider, extendTheme } from "@chakra-ui/react"const customTheme = extendTheme({colors: {50: "#F7FAFC",900: "#171923",},semanticTokens: {colors: {text: {default: "gray.900",_dark: "gray.50",},},},})const App = () => (<ChakraProvider theme={customTheme}><Text color="text">will be gray.900 in light mode and gray.50 in dark mode</Text></ChakraProvider>)
import { extendTheme } from "@chakra-ui/react"const theme = extendTheme({colors: {red: {100: "#ff0010",400: "#ff0040",500: "#ff0050",700: "#ff0070",800: "#ff0080",},},semanticTokens: {colors: {error: "red.500", // create a token aliassuccess: "red.100",primary: {// set variable conditionally with pseudo selectors like `_dark` and `_light`// use `default` to define fallback valuedefault: "red.500",_dark: "red.400",},secondary: {default: "red.800",_dark: "red.700",},},},})
System v1.10.0
- Add React component
<CSSVars root=":host, :root" />to allow rehoisting CSS vars - Updated type
ThemingPropsto allow string values for the propsvariantandsizeeven on components which are not in the default theme.
Popover v1.11.2
- Fix issue where the content of a lazy popover or menu gets unmounted before (framer-motion) animation ends leading to a janky user experience.
Menu v1.8.4
- Fix issue where the content of a lazy popover or menu gets unmounted before (framer-motion) animation ends leading to a janky user experience.
Media Query v1.2.4
- Update typings for useBreakpointValue parameter
Hooks v1.8.0
- Add
useAnimationStatehook to help track motion component animations. Used in popopover and menu lazy modes - fix useConst types when using init function
Cli v1.7.1
- Update README to reflect the change of the default
--outpath tonode_modules/@chakra-ui/styled-system/dist/declarations/src/theming.types.d.ts
Slider v1.5.4
- fix a minor edge-case for calculating the
indexin use-range-slider
Button v1.5.3
- Fixed ThemingProps typings for ButtonGroup
- Fixed an issue where the
iconSpacingfor the<ButtonSpinner />was hardcoded.
Utils v1.10.0
- Add helper function
flatten
import { flatten } from "@chakra-ui/utils"flatten({ space: [0, 1, 2, 4, 8, 16, 32] })/** =>{"space.0": 0,"space.1": 1,"space.2": 2,"space.3": 4,"space.4": 8,"space.5": 16,"space.6": 32,}*/
Theme Tools v1.3.2
- Allow style function types to be part of
StyleConfigandMultiStyleConfigtypes to reflect the possible usage of style functions instead of style objects.
Checkbox v1.6.3
- Added a
CheckboxStatetype to theuseCheckboxhook to improve usability and documentation
06-01-2022#
@chakra-ui/react@1.7.5
Modal v1.10.4
- Update
DrawerPropstype to includeThemingPropsfor the Drawer component
Avatar v1.3.3
- Added the prop
srcSetto the<Avatar />and<AvatarImage />components to allow responsive image sources. Read more on MDN
Layout v1.7.1
-
Add support for
areaprop onGridItem#
Deprecated area prop on Grid and added support for area prop to be used
with GridItem instead. This allows for usage of GridItem's that have named
template areas to be used in conjunction with a Grid that has a defined
template area.
<Grid templateAreas='"one two three"'><GridItem area='one'>one</Grid><GridItem area='two'>two</Grid><GridItem area='three'>three</Grid></Grid>
Storybook Addon v1.0.1
- Added dependency to @chakra-ui/icons
System v1.9.1
- Fixed an TypeScript issue where the ThemingProps type was too strict
02-01-2022#
@chakra-ui/react@1.7.4
Styled System v1.16.0
-
Add support peer pseudo style props#
You can now style an element based on the state of its general sibling (marked
with .peer or data-peer) attribute.
<><input type="checkbox" data-peer /><Box bg="white" _peerFocus={{ bg: "green.400" }} /></>
The peer properties you can apply are _peerHover, _peerFocus,
_peerFocusVisible, _peerActive, _peerInvalid,
_peerChecked,_peerFocusWithin, _peerPlaceholderShown, _peerDisabled
New style props#
Added _placeholderShown pseudo props for styling elements when sibling inputs
have placeholder shown.
Added _ltr pseudo props for styling elements in LTR writing mode. This is
useful for products with RTL first approach.
Added _mediaReduceMotion pseudo props to apply reduce motion styles to
elements. This is useful when you need to remove CSS animations/transitions.
- Adds style props for CSS scroll behavior properties:
scrollPadding,scrollMargin,scrollSnapAlign, etc...
Here's a full list of properties:
-
Scroll Behavior:
scrollBehavior,scrollSnapAlign,scrollSnapStop,scrollSnapType -
Scroll Margin:
scrollMargin,scrollMarginTop,scrollMarginBottom,scrollMarginLeft,scrollMarginRight,scrollMarginX,scrollMarginY -
Scroll Padding:
scrollPadding,scrollPaddingTop,scrollPaddingBottom,scrollPaddingLeft,scrollPaddingRight,scrollPaddingX,scrollPaddingY
System v1.9.0
- Use the feature flag
--strict-component-typesfor@chakra-ui/cli tokensto generate strict component type for the theming propsvariantandsize.
chakra-cli tokens --strict-component-types
// before<Button variant="abc" />// valid type but variant is not available in the theme// after<Button variant="abc" /> // invalid// Type '"abc"' is not assignable to type '"link" | "outline" | "ghost" | "solid" | "unstyled" | undefined'.
Cli v1.7.0
- Use the feature flag
--strict-component-typesfor@chakra-ui/cli tokensto generate strict component type for the theming propsvariantandsize.
chakra-cli tokens --strict-component-types
// before<Button variant="abc" />// valid type but variant is not available in the theme// after<Button variant="abc" /> // invalid// Type '"abc"' is not assignable to type '"link" | "outline" | "ghost" | "solid" | "unstyled" | undefined'.
- Fixed an issue where the cli fails when
prettieris not installed - Added token scales
blur,borderStylesandborderWidths.
Slider v1.5.3
- Allow classNames specified on
SliderandSliderFilledTrackto be added to the class list
Hooks v1.7.2
- Add a comment about
useStatealternative - Fixed a issue where
useIdgenerated inconsistent id values between client and server (SSR).
Storybook Addon v1.0.0
- The official Storybook Addon for Chakra UI.
yarn add -D @chakra-ui/storybook-addon
npm i -D @chakra-ui/storybook-addon
Add the addon to your configuration in .storybook/main.js:
module.exports = {addons: ["@chakra-ui/storybook-addon"],}
Checkbox v1.6.2
- Fix issue where focus styles persists when
isDisabledis set totrueand checkbox has focus.
Radio v1.4.4
- Add
aria-describedbyto the radio props to improve accessibility
Menu v1.8.3
- Omit
disabledandaria-disabledprops fromMenuItemPropstypes
Theme v1.12.3
- Ensure consistent line height for
FormErrorMessageandFormHelperText - Fixed an issue where the
ModalFooterwas out of the viewport forsize="full".
Editable v1.3.2
- When the
Editablecomponent has itsstartsWithEditViewset totrue, then focus should be set to theEditableInputelement when the component is mounted.
Tooltip v1.4.3
- Fix broken link in Tooltip's JSDoc comment
Layout v1.7.0
- Improve error message when using
ListItemwithout wrapping inList.
Media Query v1.2.3
useBreakpointValuereturns the correct value on first tick, ifmatchMediais available
Test Utils v1.1.4
- Upgrade
@testing-library/react-hooksto test SSR. This was used to debug and fix issues with theuseIdhook.
09-12-2021#
@chakra-ui/react@1.7.3
- Update storybook url configuration for
@chakra-ui/reactto https://storybook.chakra-ui.com
Layout v1.6.0
- Add support for style props
gap,columnGapandrowGap. Those CSS properties are valid in a grid or flex context
For further information see MDN Docs
- Fix TS issue with Grid component due to the native
gap,rowGapandcolumnGapwe added to styled system.
Styled System v1.15.0
- Add support for style props
gap,columnGapandrowGap. Those CSS properties are valid in a grid or flex context
For further information see MDN Docs
- Fix issue where
bgGradientparser doesn't work when a position is specified - Fix issue where tokens autocomplete don't show up anymore except user runs the cli command.
- Fixed issue where multi-value
insetproperty doesn't work.
Menu v1.8.2
- Fix issue where
enabledTS type was exposed to popover and menu fromUsePopperProps. This was resolved by omittingenabledfrom the type
Popover v1.11.0
- Fix issue where
enabledTS type was exposed to popover and menu fromUsePopperProps. This was resolved by omittingenabledfrom the type - Fix issue where
Popoverwill bedisplay:nonewhen inner element focused. - Add
PopoverAnchorcomponent which allows you to set thePopoverreference point without acting as a trigger.
<Popover>{/* triggers the popover to open/close */}<PopoverTrigger><button>Trigger</button></PopoverTrigger>{/* popover will be positioned relative to this */}<PopoverAnchor><Box width="40px" height="40px" /></PopoverAnchor><PopoverContent>Hello World</PopoverContent></Popover>
Input v1.3.2
- Fixed an issue where
InputGrouppasses undefinedsizeandvariantprops which overrides the ones defined by default in a customInputcomponent.
System v1.8.3
- Allow retrieving breakpoint tokens when using useToken
Theme v1.12.2
- Fix issue where tokens autocomplete don't show up anymore except user runs the cli command.
Toast v1.5.0
- The
toastfunction now exposes acontainerStyleproperty you can use to override the default styles for the toast container.
function Example() {// Via instantiationconst toast = useToast({position: "top",title: "Container style is customizable",containerStyle: {maxWidth: "100%",},})// Or via triggerreturn (<ButtononClick={() => {toast({containerStyle: {maxWidth: "100%",},})}}>Click me to show toast with custom container style.</Button>)}
- Fix TS issue with toast placement utility
Tooltip v1.4.2
- Prevent
onKeyDowncallback from de/registering on every call ofuseTooltip
Media Query v1.2.2
- Improved performance and behavior of
useMediaQueryhook.
Transition v1.4.2
- Fixed issue where the
refofSliderreturnsnulldue to prop override
Icon v2.0.0
- Auto assign
keywhen passing array of paths tocreateIcon
const HeartIcon = createIcon({displayName: "HeartIcon",path: [<path stroke="none" d="..." fill="none" />, <path d="..." />],})
17-11-2021#
Props Docs v1.0.40
- Fix issue where package doesn't include a
distfolder and doesn't work when installed from npm.
Radio v1.4.2
- Add cursor
pointerto the radio container
Slider v1.5.2
- Fixed a bug where a thumb would not move in case of stacked thumbs
Color Mode v1.3.2
- Fixed flaky color-mode test
- Fixed issue where
DarkModeandLightModeelements rerenders their children even if the child is memoized.
<LightMode> and <DarkMode> components are now memoized to prevent
unnecessary rendering of their child components.
12-11-2021#
@chakra-ui/react@1.7.1
- Update babel config to transpile soruces for older browsers. This fixes issues with CRA and Storybook.
Cra Template Typescript v1.1.1
- Bump TypeScript version
Media Query v1.2.1
- Fix issue where
useColorModePreferencereturned incorrect values due to array destructuring. - Update babel config to transpile soruces for older browsers. This fixes issues with CRA and Storybook.
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
useSystemColorModeistrue, the system's color mode will be used as default and we'll fallback to theinitialColorModeif system color mode isn't resolved. -
If
--chakra-ui-color-modeis defined through e.g.ColorModeScriptthis will be used. -
If local storage is used as the
colorModeManagerand a value is defined forchakra-ui-color-mode, this will be used. -
if
initialColorModeis set tosystem, the system's color mode will be used as default and we'll fallback to theinitialColorModeif system color mode isn't resolved. -
if
initialColorModeis 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.1includes a dependency update offocus-lockfrom0.8.1->0.9.1. The change infocus-lockincludes 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
Selectcomponent.
Theme v1.12.0
- Fixed an styling issue where it was not possible to customize the icon spacing
of the
Selectcomponent.
Slider v1.5.0
- Fixed the bug in
RangeSliderwhere 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-motion5.x inpeerDependency
Radio v1.3.13
- Improve types defined for
getRadioprops
Checkbox v1.5.10
- Allow usage of
framer-motion5.x inpeerDependency
Menu v1.7.8
- Allow usage of
framer-motion5.x inpeerDependency
Modal v1.9.4
- Allow usage of
framer-motion5.x inpeerDependency
Popover v1.9.1
- Allow usage of
framer-motion5.x inpeerDependency
Theme v1.11.1
- Allow usage of
framer-motion5.x inpeerDependency
Toast v1.3.4
- Allow usage of
framer-motion5.x inpeerDependency
Tooltip v1.3.14
- Allow usage of
framer-motion5.x inpeerDependency
Transition v1.3.8
- Allow usage of
framer-motion5.x inpeerDependency
Media Query v1.1.5
- Corrected eslint errors.
- Fix an issue where the
useMediaQuerywas 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 intocreatePopperdefinition. 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
closeButtonto popover component parts
Styled System v.1.13.0
- Add
_groupFocusVisiblepseudo style props
Breadcrumb v1.2.10
hrefattribute will no longer be set on the inner element of theBreadcrumbLinkif the parentBreadcrumbItemhasisCurrentPageprop set totrue. Such aBreadcrumbLinkis 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'sonOpenandonClosecallbacks. The fix is to wrap the callbacks inuseCallbackRef
Menu v1.7.7
- Fixed an error where the
onOpenwas called multiple/infinite times - Fix issue where
computePositionOnMountdidn't work without explict value
Radio v1.3.12
- Fix issue where props are duplicated on child label and span elements
- Removed
aria-readonlyfrom checkbox in favor of WCAG4.1.2
Utils v1.8.4
- Use
fromEntriespolyfill from@chakra-ui/utils
Switch v1.2.12
- Fix issue where focusing the
Switchcould lead to unexpected page scrolls.
System v1.7.5
- Fixed a bug in
useTokenwhere it wasn't possible to resolve some tokens which contain dots likeuseToken('space','1.5')
Gatsby Plugin 2.0.2
- Update
peerDependenciesto 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
computePositionOnMountdidn't work without explict value
Utils v1.8.3
- Fixed iframe bug on firefox when using
getRelatedTargetfunction - Fix issue where pan-event utils don't work within iframe
Hooks v1.6.1
- Forward
thresholdoptions fromusePanSessiontoPanSessionclass
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
closeOnOverlayClickisfalse
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
tabIndexproperty isn't passed to the underlying input element
05-10-2021#
Button v1.4.4
- Added missing
@chakra-ui/react-utilsimport
Slider v1.4.0
- Move hard-coded styles to slider's theme
- Add support for multithumb slider. We now have
useRangeSlider,RangeSliderandRangeSlider*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
tinycolor2with@ctrl/tinycolorto get better tree-shaking benefits
Theme v1.10.2
- Replace
tinycolor2with@ctrl/tinycolorto get better tree-shaking benefits
Checkbox v1.5.7
- Add state
data-*attributes to the checkboxcontainerto allow user style the_checked,_invalidand_disabledstates
Slider v1.3.0
- Add
RTLsupport by using the theme's direction ("ltr" or "rtl") to set the defaultisReversedproperty when theorientationishorizontal
Modal v1.9.0
- Drawer: Add support for RTL-aware placement values. You can now pass
startandendvalues. The drawer will useleft/rightplacement depending on the specifiedtheme.directionvalue. - Drawer: omit the
motionPresetprop type sinceDraweronly implements theSlidetransition, unlikeModalthat 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
fallbackSrcor afallbackignoreFallbackis applied by default
Anatomy v1.0.1
- Add missing breadcrumb part
- Add container part to checkbox
Popper v2.3.0
usePoppernow accepts adirectionprop so it can handle placement for RTL languages. Values such astop-start,top-end,bottom-startandbottom-endwill 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 theImagecomponent
Toast v1.3.0
- Add support for RTL-aware
positionvalues. You can now usetop-start,top-end,bottom-startandbottom-endvalues. The toast will flip depending on thedirectionprovided in the theme.
Provider v1.6.8
- Resolve dependency issues caused by previous release
- Add
ChakraProviderPropstype what was removed in previous release
Menu v1.7.4
- Fix issue where keyboard navigation doesn't work when
MenuButtonisn'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
Buttonwith framer-motion'smotionfactory breaks animation/transition
Select v1.1.15
- The disabled state of the
SelectIconcan be reflected by a disabledFormControlor by theisDisabled-flag of theselectfield
29-08-2021#
@chakra-ui/react@1.6.7
- Move ChakraProvider to a separate package
@chakra-ui/provider - Loosen types of
extendThemeto allow recent TS compiler to work and avoidType instantiation is excessively deep and possibly infiniteerrors.
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
ThemeOverridestype to provide
Slider v1.2.9
- Fix issue where slider thumb gets focus when
onChangeEndchanges. - Call
onChangeStart/onChangeEndwhen clicking somewhere in theSliderTrackwithout dragging theDragHandle
Skeleton v1.1.18
- Don't animate when skeleton was previously loaded
System v1.7.3
- Update
useStyleConfigto read parts array from the new anatomy class
Theme Tools v1.2.0
-
Add new helpers to the
theme-toolspackage 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 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
isDisabledtoRadioGroupto make it possible to disable allRadioinsideRadioGroup - Add
isFocusabletoRadioGroupto make it possible to define thefocusable-state for allRadioinside aRadioGroup
Provider v1.6.7
- Move ChakraProvider to a separate package
@chakra-ui/provider
Hooks v1.6.0
-
Added an enabled prop to the
useOutsideClickhook to conditionally attach event handlers. -
Updated the
useMenuhook to only enable theuseOutsideClickhook when the menu is open.
Toast v1.2.11
- Add correct variant type to
UseToastOptions
Layout v1.4.9
- Fix url for
LinkBoxcomponent
Theme v1.10.1
- Added
overview:"visible"tobaseStyleofTagLabelto avoid clipped text
09-08-2021#
@chakra-ui/react@1.6.6
Form Control v1.4.0
- Added a
containerpart to theFormControlcomponent 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-describedbyproperty 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=fullhave 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
parseGradientfunction 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
classNameprop to button load spinner. - Update transitions to use theme tokens and remove outline transitions.
Media Query v1.1.0
useBreakpointValue()now supports receiving adefaultBreakpointas the second argument to support SSR/SSG.
Styled System v1.12.0
- Added the
_activeSteppseudoselector which is applied whenaria-current="step". See thewai-ariadocumentation
System v1.7.0
- The
styledfunction allows a functionalbaseStyleproperty.
import { styled } from '@chakra-ui/react'const MyComponent = styled('div', {baseStyle: (props) => ({bg: props.highlightColor})})// ...<MyComponent highlightColor="red.500" />
Cli v1.4.0
- The
tokenscommand 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
closeOnSelectwon'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
overflowXcouldn't be used within a toast'stitleordescriptionby 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
bgImageurl - Fix import type issues caused by the
WithCSSVartype
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, andbgBlendModeprops to apply blend modes to elements. -
Automatic wrapping of
backgroundImageorbgImageprops 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,textDecorationStylesstyle props. -
Add
isolationstyle prop to create a new stacking context.
High Contrast Mode
-
Fixed issue where setting
outline:0oroutline:noneand usingbox-shadowfor focus outlines don't work in high-contrast mode. -
To fix this, we've added
outline: 2px solid transparentwhenever you setoutline:0to make your components work in high-constrast mode by default.
-
Fix the
_darkpseudo props to map to.chakra-ui-dark &, [data-theme=dark] &, &[data-theme=dark]. -
Added
_lightpseudo 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, andoverscrollYstyle prop to manage overscroll behavior of an container.
Theme v1.9.0
- Add blur token values for
filterandbackdropFilter.
{"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
ChakraProvidernow accepts the propcssVarsRootwhich defaults to:host, :root.
System v1.6.6
- Attach CSS vars to
:host, :rootto fix usage in shadow dom.
Transition v1.3.1
- Fix issue where
onAnimationCompleteis not forwarded to motion element.
04-05-2021#
@chakra-ui/react@1.6.1
Popover v1.7.0
- Add an export for
usePopoverContexthook.
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
Collapseanimation hide overflow when it expands. Collapse transition how shows overflow when it's expanded and hides overflow when it's collapsed. -
Add support for
delayprop 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
pipefunction. - 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
closeOnSelectdidn't work for menuitem options.
Modal v1.8.5
- Fix types for modal overlay fade config.
Slider v1.2.5
- Fix issue where
onChangeStartdoesnt get called. - Fix issue where slider thumb remains tabbable when
isDisabled={true}. - Fix issue where
onChangeEnddoesn'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
isUsingColorModeoption was removed. TheChakraProviderwill always use theColorModeProvider. -
The
isResettingCSSoption was renamed toresetCSS. Those changes were made to use the current ChakraProvider and align the prop names.
Improvements
- Use
ChakraProviderinstead of the outdatedThemeProviderpattern. - Add
initialColorModeto theColorModeScript. - Allow Fast Refresh reloading of all theme files.
- Set stricter
peerDependencyongatsby(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
extendThemefunction 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
pipefunction. - Add generic to
isFunctionguard.
Button v1.3.1
- Resolved an issue where the
typeprop of theButtoncomponent was set toundefined.
Progress v1.1.8
- Fix hyperlink to docs.
React Utils v1.1.2
- Update types for
mergeRefsto 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
spinnerPlacementprop to allow changing the spinner placement for the button whenisLoadingistrue. Spinner placement can be eitherstartorend.
<Button isLoading spinnerPlacement="end">Click me</Button>
Checkbox v1.5.0
- Add
isDisabledprop toCheckboxGroup.
Hooks v1.5.0
- Add pan session hook
usePanGesturefor detecting pan gestures. - Update
useLatestRefto inline value updates. Not concurrent mode safe but works for now. - Add
useEventListenerMapto provide an elegant way of attaching several pointer event to thedocumentor an element.
Menu v1.5.0 & Popover v1.6.0 & Tabs v1.4.0
- This change restores the behavior of the
isLazyprop (which was broken by the previous release) and adds a newlazyBehaviorprop 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
onChangecall performance. - Update types for internal pointer event.
React Env v1.0.2
- Fix bug where
EnvProviderbreaks 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
onChangecalls.
Stat v1.1.7
- Fixed a11y issue related to
StatHelpText. It was using an invaliddlchild 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
useEventListenerandusePointerEvent.
Menu v1.4.0
- Add
closeOnSelecttoMenuItemandMenuItemOption. - 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
environmentprop 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.jswrapper.
Progress v1.1.6
- Fix an issue where
CircularProgresswithisIndeterminatedoesn't show the indicator
React v1.5.1
-
Fixed typing issues for
extendThemewhere variant overrides lead to an TS error. -
Add
EnvironmentProvidertoChakraProviderfor 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
panelpart name inProgresstheme 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
pxfunction.
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
rootPropstoPopoverContentto allow passing props to popover's positioner. -
Make it possible to add custom motion
variantsso users can orchestrate custom transitions. -
Move popover arrow shadow color computation to popover's theme.
-
Update import of shared utils from
react-utilstoutils.
Popper v2.1.0
- Add prop getters for popper and arrow for better ssr support.
- Replace
utilsdependency withreact-utils.
Table v1.2.0
- Add
TableContainercomponent 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-utilstoutils. - Replace
withFlushSyncwithscheduleMicrotaskcallback to prevent ReactDOM warning.
Form Control v1.3.1
- Refactor form label to use prop getter instead of hook for better consistency.
- Replace
withFlushSyncwithscheduleMicrotaskcallback 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
withFlushSyncwithscheduleMicrotaskcallback 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-utilstoutils. - Replace
withFlushSyncwithscheduleMicrotaskcallback to prevent ReactDOM warning.
Select v1.1.5
- Fix RTL styles for select field to use
paddingEndinstead ofpr.
Theme v1.8.1
Popover
- Moved
maxWfrom popover'spoppertocontentto allow for better control of the popover's width. - Use
widthinstead ofmaxWto allow users more control of popover's width. - Use
--popover-bgcss 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
warndoesn'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-utilstoutils. - Replace
withFlushSyncwithscheduleMicrotaskcallback to prevent ReactDOM warning. - Import types for
warnfunction.
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
getRootPropstouseCheckboxhook to manage props passed to checkbox container. -
Forward
onFocus,onBlurandaria-\*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
setValuefunction to allow update state without callingonChange. - Fix issue where
onChangeis called when value did not change.
Form Control v1.3.0
-
Refactor
useFormControlProviderto return prop gettersgetHelpTextProps,getErrorMessageProps, andgetRootProps. -
Detect helper text and error message using ref callback instead of
useLayoutEffect. -
Update
aria-describedbyid to include feedbackId only whenisInvalidis true. -
Create
useFormControlPropsto 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=rowof 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
onChangewas called on mount. -
Fix issue where
onBlurwas called twice. -
Memoize all callback props
onFocus,onBlur,getAriaValueText. -
Refactor implicit
useFormControllogic to be called from NumberInput instead. -
Call
setFocused.onwithReactDOM.flushSyncto 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
StylesProviderexport was not working in every environment. -
Add style config for upcoming
rotateX,rotateY,scaleX,scaleYstyle 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
withFlushSyncfunction wrapper to help resolve concurrent mode and onFocus state issues.
Toast v1.2.1
- Bump
@reach/alertto fix yarn pnp issue.
21-03-2021#
@chakra-ui/react@1.4.1
Styled System v1.9.1
- Fix issue where
textStyledoesn't get applied.
20-03-2021#
@chakra-ui/react@1.4.0
React v1.4.0
- Added support for
framer-motionv4.
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
toCSSVarsomitted the transition tokens. - Fix issue where RTL property keys are incorrect due to
config.propertymutation. - Added typings for the theme prop in
ThemingPropsThunkand export a standalone type ThemeComponentProps. ThemingPropsThunk - Update
mxandpxto use logical properties. Instead of mapping tomarginLeftandmarginRight, it maps tomarginInlineStartandmarginInlineEnd. 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
submitOnBluris true and you try to click the cancel button.
Radio v1.2.5
- Fix issue where controlled radio group can't be cleared.
- Fix
onChangetype for use-radio-group props.
Tag v1.1.3
- Add
aria-labelto 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: falsein 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
nonceof the<script>thatColorModeScriptcreates by passingnonceprop.
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
ChakraThemeto improve theextendThemefunction 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
extendThemewhere 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
textStyleandlayerStylein styled-system package. This makes it possible to use them in the component theme,cssfunction andsxprop 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
applyprop handling to use the style config pattern instead of add it imperatively. - Allow numbers for
borderTopand provide autocomplete forfontWeightprop. - Support negative scale values for css variables.
System v1.3.0
- Add support for responsive values when using
apply,textStyleandlayerStyle.
Theme v1.6.0
- Fixed an issue where a
Tooltipwith negativeguttercauses flickering on hover. - Fixed an issue in Firefox where
Inputoverflows 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
sizeandvariantforAvatarGroup,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
InputPropsinterface due to which theming types were not correct.
Tool tip v1.1.1
- Fixed an issue where a
Tooltipwith negativeguttercauses 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
useColorModeValuedefaults 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
shouldWrapChildrento Wrap component to make it possible use Wrap directly without thinking about WrapItem. - Update
LinkBoxandLinkOverlaycomponents and make them public in docs.
Menu v1.1.0
- The
MenuItemnow accepts acommandSpacingprop that can be used to adjust the space between the command and label. - Add support
rootPropstoMenuListso 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
zIndexby 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
getContainerprop tocontainerRefto make it possible to pass the ref directly. This affects theModalcomponent 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
useTabsContexthook is now exported and can be used in user land.
Theme v1.5.0
- Add
8xlto 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
otpflag toPinInputthat 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
flipprop 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.
Styled System v1.5.0
- Move
srOnlyprop 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
polyfillfor 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
portalZIndextoChakraProvidermakes 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
useCallbackRefhook 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
rgbvalues inbgGradientdid 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
2xlbreakpoint to the theme which maps to96emor1536px.
Media Query v1.0.3
- Fixed
useBreakpoinValueinfinite 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
PortalManagercreates. 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
leftIconandrightIconto support RTL. Changedmlandmrto marginStart and marginEnd respectively. - Update the style props applied when isLoading is
true. ChangedmarginRighttomarginEnd.
Stack
- Update
directionStylesto use logical CSS properties for RTL support. - Changed
marginLeftandmarginRighttomarginStartandmarginEndrespectively.
Styled System v1.3.1
- Add missing
borderStart, andborderEndtypes for for style and color. - Sort
Object.assignkeys inconfigs/border.tsfor better readability.
Other RTL fixes:
- Alignment for the close icon for
Tag,Modal, andDrawercomponents 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
extendThemetypings & accept optional second argumentbaseTheme.
Checkbox v1.1.0
- Deprecated the
defaultIsCheckedprop in favor ofdefaultChecked.
Radio v1.1.0
- Deprecated the
defaultIsCheckedprop 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
SkeletonTextnow accepts the propsfadeDurationandspeedand animates its children, like theSkeletoncomponent.
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
typeandpatternprops.
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
maskprop to provide similar utility like input type password.
Alert v1.0.2
Alertnow colorScheme aware (overrideable via status).
Close Button v1.0.2
- Resolved an issue where
DrawerCloseButtonwas not receiving its base styles when it was passed other styles through the__cssproperty, 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,ListItemandListIconare now themable.
Modal v1.2.0
ModalCloseButtonis now themable.
Theme v1.2.0
AlertIconno 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
NumberInputis 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.