@chakra-ui/react
3.23.0
Minor Changes
86ca96aThanks @segunadebayo! - - System: Addunstyledprop support to compound component children to opt-out of recipe styles per component.<Accordion.Root defaultValue={["a"]}> <Accordion.Item value="a"> {/* Opt-out of recipe styles */} <Accordion.ItemTrigger unstyled bg="red.500" /> <Accordion.ItemContent> <Accordion.ItemBody /> </Accordion.ItemContent> </Accordion.Item> </Accordion.Root>- Group: Add support changing group gap globally via
--group-gapCSS variable
- Group: Add support changing group gap globally via
Patch Changes
dd3af62Thanks @segunadebayo! - - Tree View- Fixed issue where tree view doesn't scroll into view when content overflows
- Fix issue where the
filtermethod completely deletes the children key from the node when there are no matching children - File Upload
- Add support for programmatically controlling the accepted files via
acceptedFilesanddefaultAcceptedFiles - Export
FileError,FileMimeType, andFileRejectiontypes and fix validation issues
- Add support for programmatically controlling the accepted files via
dc02076Thanks @segunadebayo! - Fix HTML semantic structure forBreadcrumb.Ellipsiscomponent by changing the underlying element from<span>to<li>.// Before: <span> inside <ol> (invalid HTML) <Breadcrumb.List> <Breadcrumb.Ellipsis /> {/* rendered as <span> */} </Breadcrumb.List> // After: <li> inside <ol> (valid HTML) <Breadcrumb.List> <Breadcrumb.Ellipsis /> {/* now renders as <li> */} </Breadcrumb.List>4da48e3Thanks @segunadebayo! - - Tabs: Export missing types- Hooks: Export entrypoint for better tree-shaking
@chakra-ui/react/hooks - Theme: Expose smaller bits of the theme in the entrypoint for better
tree-shaking
@chakra-ui/react/theme. We now exposerecipes,slotRecipes,breakpoints,keyframes,textStyles,layerStyles,animationStyles,globalCss,cssVarsPrefix,cssVarsRoot,semanticTokens,tokensas dedicated modules. - Dialog: Use
dvhanddvwunits instead ofvhandvwto dynamically adjust to viewport size changes. - Native Select: Ensure height is consistent with input and select across sizes.
- Hooks: Export entrypoint for better tree-shaking
3.22.0
Minor Changes
- #10111
32967aaThanks @segunadebayo! - Add new TreeView component that is used to represent hierarchical data in a tree structure.
Patch Changes
- #10126
ca40993Thanks @isBatak! - - Clipboard: Fix issue whereclipboardAnatomywas not exported from@chakra-ui/react/anatomy- Combobox
- Expose
reasontoonOpenChangeandonInputValueChangecallbacks - Expose
api.clearHighlightedValuefunction to clear highlighted value
- Expose
- Toast: Fix issue where toast
titleordescriptioncould not accept React element - Progress: Improve
valueAsStringformatting - Select
- Select highlighted item only if it exists in the collection
- Expose
api.clearHighlightedValuefunction to clear highlighted value
- ClientOnly: Support
childrenas a function
- Combobox
3.21.1
Patch Changes
8ddeb0bThanks @segunadebayo! - - Popover: Fixed issue whereonOpenChangecould be called twice when controlled- Combobox
- Fixed issue where
onInputValueChangecould be called twice when selecting an item - Fixed issue where combobox with
allowCustomValue: trueused within in a form requires two enter keypress to submit
- Fixed issue where
- Progress
- Fix issue where setting orientation to
verticaldon't work - Fix issue where setting
defaultValuetonulldoesn't show indeterminate state
- Fix issue where setting orientation to
- Toast: Fix issue where app crashes when
toaster.promiseis called without loading option. Theloadingoption is now required. A warning will be logged if it is not provided - Combobox, Select, Listbox: Fix issue where rehydrating
defaultValueorvalueafter fetching items doesn't update thevalueAsString
- Combobox
#10119
6cf8cc6Thanks @isBatak! - - improveDrawerrecipe to better support conditional variants.- add
Drawerconditional variants example to the docs and storybook.
- add
#10101
2b4fa6dThanks @isBatak! - - Select: Export missing SelectRootComponent type exportd7914adThanks @segunadebayo! - Fix inconsistent handling ofnullandundefinedfor skipping breakpoints using array syntax
3.21.0
Minor Changes
3df43baThanks @segunadebayo! - Add support new entrypoint for/themewhich allows for incremental loading of component recipes to avoid bloating the theme with unused components.This is mostly for bundle size optimization.
For example, if you want just the
buttonrecipe to be included in your bundle, you can cherry-pick the recipe you need like this:import { createSystem, defaultBaseConfig } from "@chakra-ui/react" import { buttonRecipe } from "@chakra-ui/react/theme" export const system = createSystem(defaultBaseConfig, { theme: { recipes: { button: buttonRecipe, }, }, })
Patch Changes
010f256Thanks @segunadebayo! - - File Upload: PreventedundefinedinacceptedFileswhen no files accepted- Select: Fixed issue where highlighted item could be cleared when navigating up/down the list with keyboard
- Tabs: Fixed issue where tabs with links should not trigger tab change upon cmd/middle click
- Menu: Fixed issue where
Menu.ItemTextcould not be used withMenu.Item
3.20.0
Minor Changes
65020ddThanks @segunadebayo! - - System: Allowundefinedfor optional properties in CSS and recipe typesColor Picker: Fixed issue where value change end event is invoked when committing via an input.
Toast: Fixed issue where calling
toast.remove()without an id shows a TypeScript error.Field: Fixed issue where helper text and error text could not be detected in shadow DOM environments.
Slider
- Fixed issue where
minStepsBetweenThumbsisn't computed correctly when interacting with pointer or keyboard. - Fixed issue where
Shift+ArrowRightset value to0instead ofmaxwhen step is too large (e.g.20). - Fixed issue where
onValueChangeEnddoesn't return the latest value when dragging very fast. - Fixed issue where slider could throw a error when rendered in an popover or dialog.
- Fixed issue where
File Upload: Added support for transforming uploaded files via
transformFilescontext property.Combobox: Fixed issue where
onInputValueChangedoesn't get called whenautoFocusis set totruePin Input: Fixed issue where input padding could cause clipping of the text when
fontSizeis increased.
Patch Changes
#10081
c2f650bThanks @isBatak! - - exportCheckboxRootProviderPropstype#10075
63c267fThanks @isBatak! - - exportQuotetypography component and its types
3.19.2
Patch Changes
#10059
a289c3cThanks @isBatak! - - System: add explicitundefinedto generated types to support TSexactOptionalPropertyTypes#10064
10d0a8eThanks @mhsattarian! - - Drawer: Fix drawer close animation in RTL- Button
- Fix layout issue when in loading state with icons by using
display: contentsandvisibility: hidden - Add
data-loadingattribute whenloadingistrueso allow styling loading state with_loadingpseudo prop
- Fix layout issue when in loading state with icons by using
- Button
3.19.1
Patch Changes
aa9c2b0Thanks @segunadebayo! - - System: Fix issue where some svg element props tend to be treated as style props- Checkbox: Use consistent cursor for checkbox and radio group
3.19.0
Minor Changes
- #9464
d860d48Thanks @segunadebayo! - - [New] Combobox Add combobox component for autocomplete text entry.- Progress Circle: Make progress circle transition smoother.
3.18.0
Minor Changes
e91ec7eThanks @segunadebayo! - - DownloadTrigger [New] AddDownloadTriggercomponent to help download file contents.System
- Fix issue where passing
dprop tochakra.pathadds it to styles not as a direct attribute. - Fix issue where responsive semantic tokens did not get applied.
- Fix issue where passing
Select: Fix issue where indicator group doesn't align correctly in RTL layouts.
3.17.0
Minor Changes
- #9977
ad8cc44Thanks @seongminn! - - Breadcrumb: Prevent screen reader from reading the separatorToast: Added toast queuing when the max limit is reached:
- New toasts were queued instead of dropped
- Queued toasts were shown when space became available
- Queue cleared when all toasts were removed
SegmentGroup: Fix issue where
disabledprop was not being applied toSegmentGroup.ItemsRatingGroup: Fix issue where half-filled icons were not being displayed correctly in RTL
Collapsible: Fixed issue in React.js <= v18.x where collapse animation might not work as expected
3.16.1
Patch Changes
46075baThanks @segunadebayo! - - Dialog, Drawer: Use correct z-index for dialog and drawer backdrop- SegmentGroup: Fix issue where
orientationprop toSegmentGroup.Rootdoesn't work as expected
- SegmentGroup: Fix issue where
3.16.0
Minor Changes
529244dThanks @segunadebayo! - - Global CSS: Improve text selection contrastSystem
- Fix issue where
borderEndshorthand was not working despiteborderStartbeing present - Fix issue where
system.cvareturn type was incorrect - Soften the focus ring for all color palettes
- Fix issue where
Dialog, Drawer: Fix issue where
z-indexwas not being applied correctly[Beta] createOverlay: Add
createOverlayutility for programmatically controlling overlay components (Dialog, Drawer, etc.)
3.15.1
Patch Changes
e3d7db7Thanks @segunadebayo! - - Fix issue where backdrop could overlap positioner when reopened quickly- Ensure types are consistent with React 19
3.15.0
Minor Changes
2f4ea3bThanks @segunadebayo! - - useMediaQuery: Fix type signature to allow skipping the second argumentRadioCard: Fix accessibility issue due to html structure
Slider
- Add support for
origin: endto align the thumb to the end of the track. - Expose
thumbSizeas CSS variables in the root element. Can be useful for styling the slider.
- Add support for
Menu
- Added
onSelectevent to theMenu.Itemcomponent. - Ensure menu items have unique IDs to improve accessibility and HTML validation.
- Added
3.14.2
Patch Changes
87a072bThanks @segunadebayo! - - Fix potential import error from@zag-js/utilsin@ark-ui/react
3.14.1
Patch Changes
0eb769eThanks @segunadebayo! - - System: Fix issue where output of<system>.css(...)from Chakra UI can't be assigned toInterpolation<Theme>from@emotion/react.- General: Bump
@ark-ui/reactto latest version.
- General: Bump
3.14.0
Minor Changes
354eaa6Thanks @segunadebayo! - Improve render performance by upgrading to the latest Ark UI v5.This brings a 1.5x–4x performance improvements across components. Learn more from the Ark UI v5 changelog.
3.13.0
Minor Changes
- #9797
eba44a3Thanks @segunadebayo! - - ColorPickerAdd support for
ColorPicker.ChannelTextcomponentAdd
ColorPicker.EyeDroppercomponent that wrapsIconButtonAdd
ColorPicker.SliderandColorPicker.Inputshortcut components to reduce LOC.InputGroup
- Export directly from the
@chakra-ui/reactpackage
- Export directly from the
Pagination
- Add
Pagination.Itemsshortcut component to render the number of pages based on thecountandpageSizeprops. - Add
Pagination.PageTextcomponent to render the current page and total pages.
- Add
3.12.0
Minor Changes
7abe7e3Thanks @segunadebayo! - - FileUpload:- Add
FileUpload.FileTextto render the list of uploaded file names. - Add
FileUpload.Itemsshorcut component to render the list of uploaded files. - Add
FileUpload.Listshortcut component that combinesFileUpload.ItemsandFileUpload.ItemGroup.
- Add
3.11.0
Minor Changes
8789401Thanks @segunadebayo! - - Accordion- Fix issue where
Accordion.ItemTriggerdoesn't applytextAlign: start - SegmentGroup
- Add new
SegmentGroup.Itemsshortcut component to render multipleSegmentGroup.Itemcomponents based on theitemsprop
- Add new
- Fix issue where
3.10.0
Minor Changes
11bdf77Thanks @segunadebayo! - - MenuSet the default children of
Menu.ArrowtoMenu.ArrowTipHoverCard
- Set the default children of
HoverCard.ArrowtoHoverCard.ArrowTip
- Set the default children of
Dialog, Drawer
- Update recipe to include absolute positioning styles for close trigger, instead of relying on snippet styles.
3.9.0
Minor Changes
52a97d0Thanks @segunadebayo! - - Skeleton Bring backSkeletonCircleandSkeletonTextcomponents.Switch
- Transition background color when checked
- Set the default
childrenforSwitch.ControltoSwitch.Thumbto reduce LOC for common use cases.
Checkbox
- Set the default
childrenforCheckbox.ControltoCheckbox.Indicatorto reduce LOC for common use cases.
- Set the default
NumberInput
- Set the default
childrenforNumberInput.ControltoNumberInput.IncrementTriggerandNumberInput.DecrementTriggerto reduce LOC for common use cases.
- Set the default
QrCode
- Set the
QrCode.Framecomponent toQrCode.Patternto reduce LOC for common use cases.
- Set the
RatingGroup
- Set the default
childrenforRatingGroup.Controlto the array ofRatingGroup.Itemcomponents to reduce LOC for common use cases.
- Set the default
Slider
- Add
Slider.Markscomponent to render marks on the slider track. This is a closed composition ofSlider.MarkerGroupandSlider.Markerto reduce LOC for common use cases. - Add
Slider.Thumbscomponent to render thumbs on the slider track. This is a closed composition ofSlider.Thumbto reduce LOC for common use cases.
- Add
PinInput
- Add support for
attachedvariant prop to render a pin input with attached inputs. This removes the need for theGroupcomponent to wrap the inputs.
- Add support for
3.8.2
Patch Changes
91945b7Thanks @segunadebayo! - Fix issue wheremtalias tomarginBlockStartinstead ofmarginTop#9712
f733a87Thanks @CerealeZ! - AspectRatio: Fix issue wherecssprop was not respected
3.8.1
Patch Changes
cdb9459Thanks @segunadebayo! - - Fix performance regression fromv3.5.xby reverting memoization logic- Add
useMemoto provider components and styling hooks to avoid unnecessary recomputations
- Add
3.8.0
Minor Changes
fa5e966Thanks @segunadebayo! - - Add new hooksuseElementRect,useForceUpdate,useLiveRef,usePreviousanduseSafeLayoutEffect- Add new
FocusTrapcomponent for trapping focus within a container
- Add new
Patch Changes
- #9616
54a73a7Thanks @mhsattarian! - - Breadcrumb: Fix issue where breadcrumb arrow don't flip in RTL- Snippets / Color Mode: Add
LightModeandDarkModecomponents to force light and dark color mode in a subtree - Docs / Testing: Add testing guideline for Vitest
- Group: Fix issue where
Groupcomponent doesn't skip invalid children
- Snippets / Color Mode: Add
3.7.0
Minor Changes
cb0ffc9Thanks @segunadebayo! - - Avatar: Add support for passingnameto theAvatarFallbackto render the initials. If nonameorchildrenis passed, it'll render either the initials or a fallback icon.- Hooks: Add
useConstanduseUpdateEffecthooks from v2. - Wrap: Bring back the
Wrapcomponent from v2.
- Hooks: Add
3.6.0
Minor Changes
04a1a07Thanks @segunadebayo! - - Styled System:- Boost performance of style resolution by removing
JSON.stringifyinmemofunction and avoid memoizing non-primitive arguments. - Connect
assetstoken tobackgroundImageandlistStyleImagecss properties. - Menu, Tooltip: Set
lazyMountandunmountOnExittotruein theRootcomponent to improve initial rendering performance. - AbsoluteCenter: Fix issue where axis doesn't work in RTL mode.
- Snippets / QRCode: Remove snippet in favor of compound component pattern.
- List: Fix issue where list items don't wrap correctly.
- Stat: Bring back
StatGroupcomponent from v2. - Close Button: Add
CloseButtoncomponent.
- Boost performance of style resolution by removing
3.5.1
Patch Changes
34d46e3Thanks @segunadebayo! - - Button: Fix issue where button is not disabled when loading props is passed- ColorPicker, HoverCard, Tooltip: Fixed intermittent placement shifts
caused by updates to the
data-placementattribute - Snippets / Alert: Deprecate the
Alertsnippet in favor of using theAlertcomponent directly from@chakra-ui/react.
- ColorPicker, HoverCard, Tooltip: Fixed intermittent placement shifts
caused by updates to the
3.5.0
Minor Changes
30a12d0Thanks @segunadebayo! - - Native Select- Fix issue where
disabledandinvalidprops were not being passed to theNativeSelectFieldcomponent. - Persist error focus ring when
invalidprop is set. - Fix issue where native select isn't readable in dark mode for Windows/Linux devices.
- [New] Loader: Add new
LoaderandLoaderOverlaycomponents. - [New] Button Group: Add new
ButtonGroupcomponent similar to v2 for grouping similar buttons. - Button: Add
loadingandloadingTextprops to theButtoncomponent. - Snippets / Menu: Refactor checkbox item to fix rendering
- Snippets / Button: Removed the button snippet in favor of built-in component.
- Fix issue where
3.4.0
Minor Changes
375e05fThanks @segunadebayo! - - [New] Presence: Add component to animate an element using css animation, and control the mount/unmount behavior
Patch Changes
882c7f6Thanks @segunadebayo! - - Separator: Fix issue wherearia-orientationwas missing in the DOM andorientationwas added instead.- FileUpload
- Resolved an issue where form-related components reset despite the reset event being cancelled.
- Fixed a brief warning display when a new image file is added to the preview.
- Enhanced click detection for the dropzone and added support for the
disableClickprop.
- FileUpload
4c885dfThanks @segunadebayo! - - Button, Icon Fix issue where button and icon doesn't export props providersb39ea43Thanks @segunadebayo! - System: Fix issue where render times feels slower compared to v2 due to the global style computation in the provider component. Now, it is much faster. See Discussion
3.3.3
Patch Changes
9c55f21Thanks @segunadebayo! - Fix issue where icon sizes doesn't work anymore
3.3.2
Patch Changes
855bb29Thanks @segunadebayo! - - Icon: Refactor icon recipesize=inheritto allow for composition with button- Snippet / Tooltip: Set
portalledtotrueby default
- Snippet / Tooltip: Set
#9470
4bd9f8dThanks @lcswillems! - - Menu, Select: Use the same semantic token for select_highlightedstate- Toast: Fix issue where toast close trigger was not visible
e4fe984Thanks @segunadebayo! - Fix issue where using<Icon as={...} />throws an error, forcing users to use theasChildapproache506044Thanks @segunadebayo! - Fix issue where factory shows a warning React 19 due to accessingchild.ref
3.3.1
Patch Changes
0fc040aThanks @segunadebayo! - HoverCard, Tooltip: Resolved an issue where the controlled open state could become inconsistent during theopeningorclosingphases.1439548Thanks @segunadebayo! - Fix issue whereuseRecipeanduseSlotRecipereturnsneverwhen key does not match built-in recipe.
3.3.0
Minor Changes
#9437
791bcecThanks @segunadebayo! - ### Added- Clipboard: Introduced
Clipboard.ValueTextto display clipboard content. - FileUpload:
- Added
preventDropOnDocumentto block file drops on the document when the file upload component is active. - Added
setClipboardFilesto the API for setting files from clipboard data.
- Added
- Progress: Added support for
onValueChangeanddefaultValue. - Tabs, Menu, Combobox: Added
navigateproperty for custom router navigation when selections render as links. - QrCode:
- Added support for
onValueChangeanddefaultValue. - Added
QrCode.DownloadTriggerto enable QR code image downloads.
- Added support for
Fixed
- Collapsible: Fixed a bug where the opening animation replayed when an open collapsible was re-rendered.
- Dialog, Popover: Resolved an issue causing dialogs or popovers to close if the focused element was removed from the DOM.
- FileUpload: Fixed a bug causing the hidden input to desync from accepted files.
- Menu, Popover: Fixed inconsistent interaction detection outside the component when the trigger was inside a scrollable container.
- Pagination: Corrected an issue where the page range returned an
incorrect
endvalue whenpageSizeexceededcount. - QRCode: Fixed
getDataUrlto generate a properly sized QR code.
- Clipboard: Introduced
#9437
791bcecThanks @segunadebayo! - Add new QRCode component for converting text and links to QR codes.import { QrCode } from "@chakra-ui/react" export const QrCodeWithoutSnippet = () => { return ( <QrCode.Root value="..." size="md"> <QrCode.Frame> <QrCode.Pattern /> </QrCode.Frame> </QrCode.Root> ) }
Patch Changes
d3f1c19Thanks @segunadebayo! - Fix issue wherehtmlWidthandhtmlHeightdoesn't work inImageorchakra.imageelements.f32cb4aThanks @segunadebayo! - Improve typesafety for layer styles to support common shorthands likebg,bgColor,bgImageb11587bThanks @segunadebayo! - Fix compound variant matching not working withcolorPaletteprop
3.2.5
Patch Changes
d195cedThanks @segunadebayo! - - Snippets / Pagination: Fix issue where pagination page text renders incorrectly when thepageSizeis greater than thecountvalue withformat=long- Snippets / InputGroup: Improve typings for
childrenprop to prevent TS errors
- Snippets / InputGroup: Improve typings for
609855dThanks @segunadebayo! - Improve type-safety inuseRecipeanduseSlotRecipehooks636c61fThanks @segunadebayo! - useMediaQuery: Fix issue where partial media queries likeaspect-ratio < 1doesn't return the correct result.Good to know: Partial media queries like
aspect-ratio < 1resolves toaspect-ratio < 1 / 1in the browser.b1c3f74Thanks @segunadebayo! - Fix issue where composingInputcomponent throwsasChildReact HTML prop warning.e7fddd5Thanks @segunadebayo! - Fix issue wheremergeConfigsdoes not override functions55258daThanks @segunadebayo! - - FileUpload: Resolved an issue where theacceptattribute wasn’t applied to the hidden input.- NumberInput: Fixed issue where the input event wasn’t triggered on the first click of the increment/decrement controls.
3.2.4
Patch Changes
df0ac52Thanks @segunadebayo! - Fix issue where component hook props (likeUseCheckboxProps,UseCheckboxGroupProps, etc.) are not exported.be8f80aThanks @segunadebayo! - Fix issue wherechakra.xfactory component props throws TS error in React 19
3.2.3
Patch Changes
d821ab5Thanks @segunadebayo! - Fix issue where responsive semantic tokens doesn't work as expected.
3.2.2
Patch Changes
7234d75Thanks @segunadebayo! - - Slider- Add
DraggingIndicatorcomponent to show an element only while dragging - Fix issue where slider marks were not styled correctly in vertical orientation
- Menu: Update recipe to use
--available-heightcss variable to keep the menu's height within the available space - System: Fixed issue where exporting
withRootProviderwould result in type error - Snippets / Slider
- Move
MarkerGroupinto theControlcomponent - Remove hardcoded margin values in favor of recipes and
data-has-mark-labelattribute
- Move
- Add
3.2.1
Patch Changes
- #9240
561ccc0Thanks @Pagebakers! - - System: Fix issue where exportingwithProviderandwithContextwould result in type error- Timeline: Fix issue where
TimelineTitlewas missing from the export - Tabs: Fix issue where
useTabsanduseTabsContextwere not exported - Snippets / ColorPicker: Fix flex direction of
ColorPickerChannelInputsandColorPickerChannelSliders
- Timeline: Fix issue where
3.2.0
Minor Changes
- #9130
e5880fbThanks @segunadebayo! - - [Preview] Add newColorPickercomponent to allow users pick a color in hsl, rgb, hsb formats.- Add new
ColorSwatchcomponent to preview a color. - Fix issue where
mergeConfigsmutates the underlying configs passed to it.
- Add new
3.1.2
Patch Changes
65952d7Thanks @segunadebayo! - - General: Fix issue where value change types were not re-exported from Ark UI- Layer Style: Fix issue where
fill.surfacelayer style doesn't render the correct styles - Pagination: Fix issue where
PaginationPageTextdid not render the correct page range
- Layer Style: Fix issue where
3.1.1
Patch Changes
#9128
0715e2cThanks @coverlv! - Fix issue whereuseBreakpointValuethrows error ifssris false#9103
1254769Thanks @Newbie012! - - Checkbox: Fix issue where checkmark doesn't show on Safari- Alert: Fix issue where indicator icon is not visible on Safari
- ClientOnly: Fix issue where returned the incorrect type leading to TS
error like
ClientOnly cannot be used as a JSX component. - Fieldset: Fix issue where anatomy is not exported
- Timeline: Refactor variants such that it responds to
colorPalette
3.1.0
Minor Changes
9a27c2cThanks @segunadebayo! - - System: Fix issue where usingasprop with logic based components doesn't work as expected.DataList: Add support for
boldvariant.Button: Tweak the horizontal padding when size is
sm.Snippets
- Slider: Add
showValueprop to render the text value of the slider. - Select
- Add
HiddenSelectto ensure it works in form submissions. - Fix type inference is lost when using
SelectRootcomponent from snippet - Fix issue where form data is not populated when using native form element
- Add
- ColorMode: Fix type error when using the latest
next-themes. - Provider: Forward props to
ColorModeProviderpowered bynext-themesfor better customization.
- Slider: Add
Toggle: Add
Togglecomponent for toggling between two states. It composes theButtoncomponent.
3.0.2
Patch Changes
20b91bdThanks @segunadebayo! - - InputAddon: Fix issue with input addon not stretched correctly.- Snippets / Toaster: Improve toaster styling by adding
width={{ md: "sm" }}to the toast root.
- Snippets / Toaster: Improve toaster styling by adding
3.0.1
Patch Changes
c0020c9Thanks @segunadebayo! - Fix issue where usingkeyframeinterpolation inanimationprop doesn't work7d4f898Thanks @segunadebayo! - Fix issue wherescrollBehavior=outsidedoesn't allow scrolling outside the dialog content
3.0.0
Major Changes
#8153
7b6e66aThanks @segunadebayo! - Prepares the ground for the next version Chakra that leverages Ark UI.User Facing
- Consolidate all component packages into a single package
- Remove all deprecated components and APIs
- Simplify the Changelogs for all v2 releases
Infrastructure
- Simplify the repo infrastructure and release process
- Migrate from
jesttovitest - Migrate from
tsupto customrollupsetup for better bundling strategy
#8815
806be96Thanks @isBatak! - Remove the@chakra-ui/hookspackage in favour of using dedicated, robust libraries likereact-useandusehooks-ts
Minor Changes
#8121
170198fThanks @kkieninger! - ### Fixed- Fix hard-coded z-index for Menu in favor of one defined from the theme
- Fix problem with leading and trailing spaces when getting initials for the Avatar component
- Suppress unnecessary re-renders of Checkbox and Radio component
Added
- Add CSS
accentColorproperty to style props - Add support for
asChildin chakra factory - Export
toastStorefromtoastcomponent - Upgrade
framer-motionto allow for skipAnimations - Add component namespace to reduce imports and provide better composition
- Modal, Drawer: Add default
preserveScrollBarGap
Changed
Redesign the component themes and anatomy
192c6b1Thanks @segunadebayo! - Add new fieldset component07b04b1Thanks @segunadebayo! - - [NEW]: AddRatingGroup,SegmentControl- [NEW]: Add
EmptyStatecomponent for empty states - [NEW]: Add
RadioCardandCheckboxCardcomponents for card-based selection
- [NEW]: Add
#8568
5fd993bThanks @isBatak! - Add Collapsible recipe with default open/close animation3fc49caThanks @segunadebayo! - Add support forFormatNumberandFormatBytecomponents3ccbbdfThanks @segunadebayo! - ### Motion StylesAdd support for
motionStyleprops.The idea is to pair them with text styles and layer styles to create this three-part mixin that can make your styles a lot cleaner.
Motion styles focus solely on animations, allowing you to orchestrate animation properties.
import { defineMotionStyles } from "@chakra-ui/react" export const motionStyles = defineMotionStyles({ "slide-fade-in": { value: { transformOrigin: "var(--transform-origin)", animationDuration: "fast", "&[data-placement^=top]": { animationName: "slide-from-top, fade-in", }, "&[data-placement^=bottom]": { animationName: "slide-from-bottom, fade-in", }, "&[data-placement^=left]": { animationName: "slide-from-left, fade-in", }, "&[data-placement^=right]": { animationName: "slide-from-right, fade-in", }, }, }, })Built-in Keyframe Animations
Chakra new provides built-in keyframe animations that you can use to create your own motion styles.
Slide:
slide-from-top,slide-from-bottom,slide-from-left,slide-from-right,slide-to-top,slide-to-bottom,slide-to-left,slide-to-rightSlide Full:
slide-from-top-full,slide-from-bottom-full,slide-from-left-full,slide-from-right-full,slide-to-top-full,slide-to-bottom-full,slide-to-left-full,slide-to-right-fullFade:
fade-in,fade-outScale:
scale-in,scale-outYou can compose these animations using the
animationNameproperty in your motion styles to create really cool animations. No JS required.<Box animationName="slide-from-top, fade-in" animationDuration="fast"> Slide from top and fade in </Box>3ccbbdfThanks @segunadebayo! - Add support for built-in layer styles to help prototype faster with automatic dark mode. Paired withcolorPalette, you can create beautiful designs with little code that adapts to dark mode automatically.Fill Layer Styles:
fill.muted,fill.solid,fill.surface<Box layerStyle="fill.muted" colorPalette="red"> This is a subtle fill layer </Box>Border Layer Styles:
outline.muted,outline.solid<Box layerStyle="outline.muted" colorPalette="red"> This is a subtle outline layer </Box>Indicator Styles:
indicator.top,indicator.end,indicator.bottom,indicator.start<Box layerStyle="indicator.top" colorPalette="red"> This is a top indicator layer </Box>Disabled Styles:
disabled<Box _disabled={{ layerStyle: "disabled" }}>Disabled Button</Box>You can combine these layer styles to create very complex designs with little code.
<Box layerStyle="fill.muted" _hover={{ layerStyle: "outline.solid" }} colorPalette="red" > This is a complex layer </Box>de9c0a0Thanks @segunadebayo! - AddDataListcomponente77a9b8Thanks @segunadebayo! - - Add new Timeline component to presenting chronological information or activities.- Trim generated
classNamein the DOM. - Add
neutralstatus toAlertcomponent
- Trim generated
763329eThanks @segunadebayo! - Add preset and preset-base entrypoints.- The
presetentrypoint exposes the default theme and recipes for Chakra. - The
preset-baseentrypoint exposes the base utilities and conditions used internally.
- The
925cfd9Thanks @segunadebayo! - Add ActionBar, Status, Rating, Pagination componentse9a1537Thanks @segunadebayo! - BREAKING: Change signature ofuseRecipe,useSlotRecipe,createSlotRecipeContextcreateSlotRecipeContext
Before:
const { withProvider, withContext } = createSlotRecipeContext("accordion")After:
const { withProvider, withContext } = createSlotRecipeContext({ key: "accordion", })useSlotRecipe
Before:
const recipe = useSlotRecipe("accordion")After:
const recipe = useSlotRecipe({ key: "accordion" })3908155Thanks @segunadebayo! - RenamecreateStyleContexttocreateSlotRecipeContextc654ee3Thanks @segunadebayo! - Improve performance of styled components to avoid unneeded re-renders.edec8f7Thanks @segunadebayo! - Add clipboard composition5093e18Thanks @segunadebayo! - Add cursor pointer to button4c6838cThanks @segunadebayo! - - RenameonLabelandoffLabeltotrackLabel- Add support for
thumbLabelprop for rendering an icon within thumb
- Add support for
#8393
623e558Thanks @segunadebayo! - - Integrate Ark UI components to reduce maintenance surface.- Add
FileUploadcomponent - Remove
trigger=hoverin favor ofHoverCard - Replace
Tooltip,PopoverandHoverCardwith those from Ark UI
- Add
945a777Thanks @segunadebayo! - BREAKING: Integrate Ark v4. This mostly affects the custom select component that requires the use ofcreateListCollectionnow.c26acf0Thanks @segunadebayo! - Add support for cursor token type55c0839Thanks @segunadebayo! - Move theProsecomponent to snippets so it can be customized by the user.952647aThanks @segunadebayo! - AddCardTitleandCardDescriptioncomponentsf4762bfThanks @segunadebayo! - Add support for merging multiple system configs into one withincreateSystemBefore:
const config = mergeConfigs(defaultConfig, customConfig) export const system = createSystem(config)After:
const system = createSystem(defaultConfig, customConfig)#8218
a89c598Thanks @segunadebayo! - Add support for custom theme conditions or pseudo props viatheme.conditions// theme.ts const theme = extendTheme({ conditions: { _closed: "[data-state='closed']", // pseudo prop }, })This allows you to use the pseudo prop in your components
<Box data-state="closed" _closed={{ bg: "red.200" }}> This box is closed </Box>For TypeScript users, you need to use the Chakra CLI to generate the types for your custom conditions.
pnpm chakra-cli tokens src/theme/index.tsc2f45caThanks @segunadebayo! - RenameFieldset.ControltoFieldset.Content1738b90Thanks @segunadebayo! - - Icon: SetasChildtotrueby default to reduce repetitionAll components
- Ensure consistent sizing convention (units of 4px). Smaller elements start at 20px, larger elements start at 40px
- Ensure focus ring matches the colorPalette
Input, Textarea: Rename
filledvariant tosubtleTags: Add new
Tag.StartElementandTag.EndElementcomponents to allow for easier styling of the start and end elements
3ccbbdfThanks @segunadebayo! - RedesignSteppercomponent. It's now calledStepsand manages the state internally, no need to useuseStepsanymore.We've also improved the accessibility of the component by leveraging the tabs pattern and adding the required ARIA attributes.
<Steps.Root defaultIndex={0} count={2}> <Steps.List> <Steps.Item index={0}> <Steps.Trigger> <Steps.Title>Step 1</Steps.Title> </Steps.Trigger> <Steps.Separator /> </Steps.Item> <Steps.Item index={1}> <Steps.Trigger> <Steps.Title>Step 2</Steps.Title> </Steps.Trigger> <Steps.Separator /> </Steps.Item> </Steps.List> <Steps.Content index={0}>Step 1</Steps.Content> <Steps.Content index={1}>Step 2</Steps.Content> <Steps.CompleteContent>Complete</Steps.CompleteContent> </Steps.Root>Using the CLI, you can also scaffold an already composed stepper component
chakra composition add steps548470dThanks @segunadebayo! - Add custom select from Ark UI and design recipe8b110daThanks @segunadebayo! - Support inlining recipe increateRecipeContextandcreateSlotRecipeContextfor better DX when shipping libraries based on Chakra.This reduces the need for using the Chakra CLI to generate types for custom components.
05793a2Thanks @segunadebayo! - - Makegraythe default color palette.- Change avatar sm size to
36pxfor consistency. - Move
bgfor outline component variants.
- Change avatar sm size to
43f2c7dThanks @segunadebayo! - - CheckboxCard [New]Add support for a new
CheckboxCardcomponent that can be used to render a card with a checkbox.<CheckboxCard.Root> <CheckboxCard.Control> <Stack gap="0" flex="1"> <CheckboxCard.Label>Checkbox</CheckboxCard.Label> <Text>Some description</Text> </Stack> <CheckboxCard.HiddenInput /> <CheckboxCard.Indicator /> </CheckboxCard.Control> </CheckboxCard.Root>Checkmark [New]
Add new checkmark component for rendering a static checkmark icon with the
checked,disabled, andindeterminatestate baked in.
<Stack> <Checkmark /> <Checkmark checked /> <Checkmark indeterminate /> <Checkmark disabled /> <Checkmark checked disabled /> <Checkmark indeterminate disabled /> </Stack>EmptyState [New]
Add new
EmptyStatecomponent for rendering an empty state message with a title, description, and optional action button.
<EmptyState.Root> <EmptyState.Content> <EmptyState.Indicator> <HiTemplate /> </EmptyState.Indicator> <VStack textAlign="center"> <Text fontWeight="medium">No template found</Text> <Text fontSize="sm" color="fg.muted"> Try creating a new template with the button below </Text> </VStack> <Button variant="outline"> <HiPlus /> Create Template </Button> </EmptyState.Content> </EmptyState.Root>e119ae9Thanks @segunadebayo! - RenamemotionStyletoanimationStylefor better intuitiveness#8575
d4522d9Thanks @isBatak! - Align theme recipe name with panda3ccbbdfThanks @segunadebayo! - Add support forfocusRingandfocusRingColorstyle props that allow to quickly style focus visible state of form controls.The focus ring values can be either
extendorcontain<Box asChild focusRing="extend" focusRingColor="pink.500"> <input type="text" /> </Box>4ff153fThanks @segunadebayo! - Speed up intellisence for style props, and add support forstrictTokensin the CLI.47a8a9eThanks @segunadebayo! - - Addinheritto Spinner recipe size- Refactor button and link button snippets
b6d1d0dThanks @segunadebayo! - Simplify spinner component to use less custom props.- Removed
emptyColor, prefer to use--spinner-track-color - Removed
speed, prefer to useanimationDuration - Removed
thickness, prefer to useborderWidth
- Removed
#8218
a89c598Thanks @segunadebayo! - Add support for_openand_closedpseudo props for styling their respective selectors._open:&[data-state=open], &[open]_closed:&[data-state=closed]_groupOpen:[data-group][data-state=open] &_groupClosed:[data-group][data-state=closed] &
Extend the existing pseudo props to support new selectors`
_placeholdernow supports&[data-placeholder]_placeholderShownow supports&[data-placeholder-shown]_fullscreennow supports&[data-fullscreen]_emptynow supports&[data-empty]_expandednow supports&[data-state=expanded]_checkednow supports&[data-state-checked]
#8569
eb26857Thanks @isBatak! - Fix theboxSizetype to allow number values.47b3b5aThanks @segunadebayo! - Support array in conditions object. This matches the API in Panda CSS and allow users to define complex selectors like media hover queries.e4f2df0Thanks @segunadebayo! - AddProsecomponent to help style markdown content.c243698Thanks @segunadebayo! - - Add referrerPolicy to Avatar component.- Add CheckboxDescription, CheckboxCardDescription and RadioCardDescription
- Swap
mutedandsubtlecolor tokens
Patch Changes
be98566Thanks @segunadebayo! - Fix checkbox and toast on mobilec941971Thanks @segunadebayo! - - ConvertTabscomponent to use Ark UI- Convert
NumberInputto use Ark UI
- Convert
#8795
4408573Thanks @TylerAPfledderer! - Adds style prop names toLayerStylePropertyunion type83366c4Thanks @segunadebayo! - - Fix regression inmergeConfigsDecompose
Fieldcomponents into smaller components, which can be optionally used withFieldLabelwhich is a generic label componentErrorMessagewhich is a generic error message componentHelpTextwhich is a generic help text component
Refactor components to use Ark UI: Avatar, Progress, CircularProgress, PinInput
0ae054dThanks @segunadebayo! - Fix issue wherehideFromandhideBelowdoesn't show any autocompletions0a03bccThanks @segunadebayo! - - Fix circular progress element types- Ensure consistent exports in components
#8617
7e9fbf0Thanks @isBatak! - Refactor text-styles to use tokens instead of raw values.6d4cbbeThanks @segunadebayo! - Fix ES module interop for @emotion/is-prop-value that makes Jest throw error.#8857
fdc2b9bThanks @stevensecreti! - update mapObject util to not call fn provided on nullish values788f493Thanks @segunadebayo! - Fix issue where media query css order is inconsistent with v287cf70cThanks @segunadebayo! - Revert text recipe to prevent color regressions#8740
d5a225fThanks @Pagebakers! - Use correct extension for ESM exports#8905
807a581Thanks @stevensecreti! - Added transform function to backgroundClip to appropriately handle 'text' value#8739
651561bThanks @Pagebakers! - Added /anatomy to exports#8792
4dd77ecThanks @TylerAPfledderer! - Updates the exposed list of slot anatomy to ensure all anatomy is included for use in type-checking extend recipe configs.bffb68fThanks @segunadebayo! - - Pagination: Fix issue page props were not forwarded correctly.- PinInput: Fix issue mask props were not forwarded correctly.
#8601
1867d66Thanks @isBatak! - Fixblurproperty token conversion to CSS variable.32a454dThanks @segunadebayo! - Add missinguse clientdirectives to several components#8854
388716dThanks @codebutler! - Fix issue where target was not passed to link overlay#8475
9224f4eThanks @ryo-manba! - Addaria-currentattribute to stepper
3.0.0-next.32
Minor Changes
05793a2Thanks @segunadebayo! - - Makegraythe default color palette.- Change avatar sm size to
36pxfor consistency. - Move
bgfor outline component variants.
- Change avatar sm size to
c243698Thanks @segunadebayo! - - Add referrerPolicy to Avatar component.- Add CheckboxDescription, CheckboxCardDescription and RadioCardDescription
- Swap
mutedandsubtlecolor tokens
3.0.0-next.31
Minor Changes
47a8a9eThanks @segunadebayo! - - Addinheritto Spinner recipe size- Refactor button and link button snippets
3.0.0-next.30
Minor Changes
1738b90Thanks @segunadebayo! - - Icon: SetasChildtotrueby default to reduce repetitionAll components
- Ensure consistent sizing convention (units of 4px). Smaller elements start at 20px, larger elements start at 40px
- Ensure focus ring matches the colorPalette
Input, Textarea: Rename
filledvariant tosubtleTags: Add new
Tag.StartElementandTag.EndElementcomponents to allow for easier styling of the start and end elements
3.0.0-next.29
Minor Changes
c2f45caThanks @segunadebayo! - RenameFieldset.ControltoFieldset.Content
Patch Changes
- #8905
807a581Thanks @stevensecreti! - Added transform function to backgroundClip to appropriately handle 'text' value
3.0.0-next.28
Minor Changes
47b3b5aThanks @segunadebayo! - Support array in conditions object. This matches the API in Panda CSS and allow users to define complex selectors like media hover queries.
3.0.0-next.27
Minor Changes
5093e18Thanks @segunadebayo! - Add cursor pointer to button945a777Thanks @segunadebayo! - BREAKING: Integrate Ark v4. This mostly affects the custom select component that requires the use ofcreateListCollectionnow.c26acf0Thanks @segunadebayo! - Add support for cursor token type
Patch Changes
#8857
fdc2b9bThanks @stevensecreti! - update mapObject util to not call fn provided on nullish values#8854
388716dThanks @codebutler! - Fix issue where target was not passed to link overlay
3.0.0-next.26
Patch Changes
6d4cbbeThanks @segunadebayo! - Fix ES module interop for @emotion/is-prop-value that makes Jest throw error.
3.0.0-next.25
Patch Changes
788f493Thanks @segunadebayo! - Fix issue where media query css order is inconsistent with v2
3.0.0-next.24
Major Changes
- #8815
806be96Thanks @isBatak! - Remove the@chakra-ui/hookspackage in favour of using dedicated, robust libraries likereact-useandusehooks-ts
3.0.0-next.23
Minor Changes
edec8f7Thanks @segunadebayo! - Add clipboard composition
Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.23
- @chakra-ui/utils@3.0.0-next.23
3.0.0-next.22
Minor Changes
55c0839Thanks @segunadebayo! - Move theProsecomponent to snippets so it can be customized by the user.
Patch Changes
be98566Thanks @segunadebayo! - Fix checkbox and toast on mobileUpdated dependencies []:
- @chakra-ui/hooks@3.0.0-next.22
- @chakra-ui/utils@3.0.0-next.22
3.0.0-next.21
Minor Changes
192c6b1Thanks @segunadebayo! - Add new fieldset component
Patch Changes
#8795
4408573Thanks @TylerAPfledderer! - Adds style prop names toLayerStylePropertyunion type#8792
4dd77ecThanks @TylerAPfledderer! - Updates the exposed list of slot anatomy to ensure all anatomy is included for use in type-checking extend recipe configs.Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.21
- @chakra-ui/utils@3.0.0-next.21
3.0.0-next.20
Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.20
- @chakra-ui/utils@3.0.0-next.20
3.0.0-next.19
Minor Changes
4c6838cThanks @segunadebayo! - - RenameonLabelandoffLabeltotrackLabel- Add support for
thumbLabelprop for rendering an icon within thumb
- Add support for
f4762bfThanks @segunadebayo! - Add support for merging multiple system configs into one withincreateSystemBefore:
const config = mergeConfigs(defaultConfig, customConfig) export const system = createSystem(config)After:
const system = createSystem(defaultConfig, customConfig)
Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.19
- @chakra-ui/utils@3.0.0-next.19
3.0.0-next.18
Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.18
- @chakra-ui/utils@3.0.0-next.18
3.0.0-next.17
Minor Changes
e9a1537Thanks @segunadebayo! - BREAKING: Change signature ofuseRecipe,useSlotRecipe,createSlotRecipeContextcreateSlotRecipeContext
Before:
const { withProvider, withContext } = createSlotRecipeContext("accordion")After:
const { withProvider, withContext } = createSlotRecipeContext({ key: "accordion", })useSlotRecipe
Before:
const recipe = useSlotRecipe("accordion")After:
const recipe = useSlotRecipe({ key: "accordion" })8b110daThanks @segunadebayo! - Support inlining recipe increateRecipeContextandcreateSlotRecipeContextfor better DX when shipping libraries based on Chakra.This reduces the need for using the Chakra CLI to generate types for custom components.
Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.17
- @chakra-ui/utils@3.0.0-next.17
3.0.0-next.16
Patch Changes
#8740
d5a225fThanks @Pagebakers! - Use correct extension for ESM exports#8739
651561bThanks @Pagebakers! - Added /anatomy to exportsUpdated dependencies [
d5a225f]:- @chakra-ui/hooks@3.0.0-next.16
- @chakra-ui/utils@3.0.0-next.16
3.0.0-next.15
Minor Changes
e119ae9Thanks @segunadebayo! - RenamemotionStyletoanimationStylefor better intuitiveness
Patch Changes
87cf70cThanks @segunadebayo! - Revert text recipe to prevent color regressionsUpdated dependencies []:
- @chakra-ui/hooks@3.0.0-next.15
- @chakra-ui/utils@3.0.0-next.15
3.0.0-next.14
Minor Changes
3908155Thanks @segunadebayo! - RenamecreateStyleContexttocreateSlotRecipeContext952647aThanks @segunadebayo! - AddCardTitleandCardDescriptioncomponentsb6d1d0dThanks @segunadebayo! - Simplify spinner component to use less custom props.- Removed
emptyColor, prefer to use--spinner-track-color - Removed
speed, prefer to useanimationDuration - Removed
thickness, prefer to useborderWidth
- Removed
Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.14
- @chakra-ui/utils@3.0.0-next.14
3.0.0-next.13
Minor Changes
3fc49caThanks @segunadebayo! - Add support forFormatNumberandFormatBytecomponents
Patch Changes
bffb68fThanks @segunadebayo! - - Pagination: Fix issue page props were not forwarded correctly.- PinInput: Fix issue mask props were not forwarded correctly.
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.13
- @chakra-ui/utils@3.0.0-next.13
3.0.0-next.12
Patch Changes
0ae054dThanks @segunadebayo! - Fix issue wherehideFromandhideBelowdoesn't show any autocompletionsUpdated dependencies []:
- @chakra-ui/hooks@3.0.0-next.12
- @chakra-ui/utils@3.0.0-next.12
3.0.0-next.11
Minor Changes
e77a9b8Thanks @segunadebayo! - - Add new Timeline component to presenting chronological information or activities.- Trim generated
classNamein the DOM. - Add
neutralstatus toAlertcomponent
- Trim generated
Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.11
- @chakra-ui/utils@3.0.0-next.11
3.0.0-next.10
Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.10
- @chakra-ui/utils@3.0.0-next.10
3.0.0-next.9
Minor Changes
3ccbbdfThanks @segunadebayo! - ### Motion StylesAdd support for
motionStyleprops.The idea is to pair them with text styles and layer styles to create this three-part mixin that can make your styles a lot cleaner.
Motion styles focus solely on animations, allowing you to orchestrate animation properties.
import { defineMotionStyles } from "@chakra-ui/react" export const motionStyles = defineMotionStyles({ "slide-fade-in": { value: { transformOrigin: "var(--transform-origin)", animationDuration: "fast", "&[data-placement^=top]": { animationName: "slide-from-top, fade-in", }, "&[data-placement^=bottom]": { animationName: "slide-from-bottom, fade-in", }, "&[data-placement^=left]": { animationName: "slide-from-left, fade-in", }, "&[data-placement^=right]": { animationName: "slide-from-right, fade-in", }, }, }, })Built-in Keyframe Animations
Chakra new provides built-in keyframe animations that you can use to create your own motion styles.
Slide:
slide-from-top,slide-from-bottom,slide-from-left,slide-from-right,slide-to-top,slide-to-bottom,slide-to-left,slide-to-rightSlide Full:
slide-from-top-full,slide-from-bottom-full,slide-from-left-full,slide-from-right-full,slide-to-top-full,slide-to-bottom-full,slide-to-left-full,slide-to-right-fullFade:
fade-in,fade-outScale:
scale-in,scale-outYou can compose these animations using the
animationNameproperty in your motion styles to create really cool animations. No JS required.<Box animationName="slide-from-top, fade-in" animationDuration="fast"> Slide from top and fade in </Box>3ccbbdfThanks @segunadebayo! - Add support for built-in layer styles to help prototype faster with automatic dark mode. Paired withcolorPalette, you can create beautiful designs with little code that adapts to dark mode automatically.Fill Layer Styles:
fill.muted,fill.solid,fill.surface<Box layerStyle="fill.muted" colorPalette="red"> This is a subtle fill layer </Box>Border Layer Styles:
outline.muted,outline.solid<Box layerStyle="outline.muted" colorPalette="red"> This is a subtle outline layer </Box>Indicator Styles:
indicator.top,indicator.end,indicator.bottom,indicator.start<Box layerStyle="indicator.top" colorPalette="red"> This is a top indicator layer </Box>Disabled Styles:
disabled<Box _disabled={{ layerStyle: "disabled" }}>Disabled Button</Box>You can combine these layer styles to create very complex designs with little code.
<Box layerStyle="fill.muted" _hover={{ layerStyle: "outline.solid" }} colorPalette="red" > This is a complex layer </Box>c654ee3Thanks @segunadebayo! - Improve performance of styled components to avoid unneeded re-renders.3ccbbdfThanks @segunadebayo! - RedesignSteppercomponent. It's now calledStepsand manages the state internally, no need to useuseStepsanymore.We've also improved the accessibility of the component by leveraging the tabs pattern and adding the required ARIA attributes.
<Steps.Root defaultIndex={0} count={2}> <Steps.List> <Steps.Item index={0}> <Steps.Trigger> <Steps.Title>Step 1</Steps.Title> </Steps.Trigger> <Steps.Separator /> </Steps.Item> <Steps.Item index={1}> <Steps.Trigger> <Steps.Title>Step 2</Steps.Title> </Steps.Trigger> <Steps.Separator /> </Steps.Item> </Steps.List> <Steps.Content index={0}>Step 1</Steps.Content> <Steps.Content index={1}>Step 2</Steps.Content> <Steps.CompleteContent>Complete</Steps.CompleteContent> </Steps.Root>Using the CLI, you can also scaffold an already composed stepper component
chakra composition add steps3ccbbdfThanks @segunadebayo! - Add support forfocusRingandfocusRingColorstyle props that allow to quickly style focus visible state of form controls.The focus ring values can be either
extendorcontain<Box asChild focusRing="extend" focusRingColor="pink.500"> <input type="text" /> </Box>
Patch Changes
0a03bccThanks @segunadebayo! - - Fix circular progress element types- Ensure consistent exports in components
#8617
7e9fbf0Thanks @isBatak! - Refactor text-styles to use tokens instead of raw values.#8601
1867d66Thanks @isBatak! - Fixblurproperty token conversion to CSS variable.Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.9
- @chakra-ui/utils@3.0.0-next.9
3.0.0-next.8
Patch Changes
32a454dThanks @segunadebayo! - Add missinguse clientdirectives to several componentsUpdated dependencies []:
- @chakra-ui/hooks@3.0.0-next.8
- @chakra-ui/utils@3.0.0-next.8
3.0.0-next.7
Minor Changes
4ff153fThanks @segunadebayo! - Speed up intellisence for style props, and add support forstrictTokensin the CLI.
Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.7
- @chakra-ui/utils@3.0.0-next.7
3.0.0-next.6
Minor Changes
925cfd9Thanks @segunadebayo! - Add ActionBar, Status, Rating, Pagination components
Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.6
- @chakra-ui/utils@3.0.0-next.6
3.0.0-next.5
Minor Changes
07b04b1Thanks @segunadebayo! - - [NEW]: AddRatingGroup,SegmentControl- [NEW]: Add
EmptyStatecomponent for empty states - [NEW]: Add
RadioCardandCheckboxCardcomponents for card-based selection
- [NEW]: Add
#8568
5fd993bThanks @isBatak! - Add Collapsible recipe with default open/close animation43f2c7dThanks @segunadebayo! - - CheckboxCard [New]Add support for a new
CheckboxCardcomponent that can be used to render a card with a checkbox.<CheckboxCard.Root> <CheckboxCard.Control> <Stack gap="0" flex="1"> <CheckboxCard.Label>Checkbox</CheckboxCard.Label> <Text>Some description</Text> </Stack> <CheckboxCard.HiddenInput /> <CheckboxCard.Indicator /> </CheckboxCard.Control> </CheckboxCard.Root>Checkmark [New]
Add new checkmark component for rendering a static checkmark icon with the
checked,disabled, andindeterminatestate baked in.
<Stack> <Checkmark /> <Checkmark checked /> <Checkmark indeterminate /> <Checkmark disabled /> <Checkmark checked disabled /> <Checkmark indeterminate disabled /> </Stack>EmptyState [New]
Add new
EmptyStatecomponent for rendering an empty state message with a title, description, and optional action button.
<EmptyState.Root> <EmptyState.Content> <EmptyState.Indicator> <HiTemplate /> </EmptyState.Indicator> <VStack textAlign="center"> <Text fontWeight="medium">No template found</Text> <Text fontSize="sm" color="fg.muted"> Try creating a new template with the button below </Text> </VStack> <Button variant="outline"> <HiPlus /> Create Template </Button> </EmptyState.Content> </EmptyState.Root>#8575
d4522d9Thanks @isBatak! - Align theme recipe name with panda#8569
eb26857Thanks @isBatak! - Fix theboxSizetype to allow number values.
Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.5
- @chakra-ui/utils@3.0.0-next.5
3.0.0-next.4
Minor Changes
e4f2df0Thanks @segunadebayo! - AddProsecomponent to help style markdown content.
Patch Changes
#8475
9224f4eThanks @ryo-manba! - Add aria-current attribute to stepperUpdated dependencies []:
- @chakra-ui/hooks@3.0.0-next.4
- @chakra-ui/utils@3.0.0-next.4
3.0.0-next.3
Minor Changes
de9c0a0Thanks @segunadebayo! - AddDataListcomponent763329eThanks @segunadebayo! - Add preset and preset-base entrypoints.- The
presetentrypoint exposes the default theme and recipes for Chakra. - The
preset-baseentrypoint exposes the base utilities and conditions used internally.
- The
Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.3
- @chakra-ui/utils@3.0.0-next.3
3.0.0-next.2
Patch Changes
83366c4Thanks @segunadebayo! - - Fix regression inmergeConfigs- Decompose
Fieldcomponent - Refactor
Avatarto use Ark UI - Refactor
Progressto use Ark UI
- Decompose
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.2
- @chakra-ui/utils@3.0.0-next.2
3.0.0-next.1
Minor Changes
548470dThanks @segunadebayo! - Add custom select from Ark UI and design recipe
Patch Changes
c941971Thanks @segunadebayo! - Convert Tabs component to use Ark UIUpdated dependencies []:
- @chakra-ui/hooks@3.0.0-next.1
- @chakra-ui/utils@3.0.0-next.1
3.0.0-next.0
Major Changes
#8153
7b6e66aThanks @segunadebayo! - Prepares the ground for the next version Chakra that leverages Ark UI.User Facing
- Consolidate all component packages into a single package
- Remove all deprecated components and APIs
- Simplify the Changelogs for all v2 releases
Infrastructure
- Simplify the repo infrastructure and release process
- Migrate from
jesttovitest - Migrate from
tsupto customrollupsetup for better bundling strategy
Minor Changes
#8121
170198fThanks @kkieninger! - ### Fixed- Fix hard-coded z-index for Menu in favor of one defined from the theme
- Fix problem with leading and trailing spaces when getting initials for the Avatar component
- Suppress unnecessary re-renders of Checkbox and Radio component
Added
- Add CSS
accentColorproperty to style props - Add support for
asChildin chakra factory - Export
toastStorefromtoastcomponent - Upgrade
framer-motionto allow for skipAnimations - Add component namespace to reduce imports and provide better composition
- Modal, Drawer: Add default
preserveScrollBarGap
Changed
Redesign the component themes and anatomy
#8393
623e558Thanks @segunadebayo! - - Integrate Ark UI components to reduce maintenance surface.- Add
FileUploadcomponent - Remove
trigger=hoverin favor ofHoverCard - Replace
Tooltip,PopoverandHoverCardwith those from Ark UI
- Add
#8218
a89c598Thanks @segunadebayo! - Add support for custom theme conditions or pseudo props viatheme.conditions// theme.ts const theme = extendTheme({ conditions: { _closed: "[data-state='closed']", // pseudo prop }, })This allows you to use the pseudo prop in your components
<Box data-state="closed" _closed={{ bg: "red.200" }}> This box is closed </Box>For TypeScript users, you need to use the Chakra CLI to generate the types for your custom conditions.
pnpm chakra-cli tokens src/theme/index.ts#8218
a89c598Thanks @segunadebayo! - Add support for_openand_closedpseudo props for styling their respective selectors._open:&[data-state=open], &[open]_closed:&[data-state=closed]_groupOpen:[data-group][data-state=open] &_groupClosed:[data-group][data-state=closed] &
Extend the existing pseudo props to support new selectors`
_placeholdernow supports&[data-placeholder]_placeholderShownow supports&[data-placeholder-shown]_fullscreennow supports&[data-fullscreen]_emptynow supports&[data-empty]_expandednow supports&[data-state=expanded]_checkednow supports&[data-state-checked]
Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.0
- @chakra-ui/utils@3.0.0-next.0