@chakra-ui/react
3.23.0
Minor Changes
86ca96a
Thanks @segunadebayo! - - System: Addunstyled
prop 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-gap
CSS variable
- Group: Add support changing group gap globally via
Patch Changes
dd3af62
Thanks @segunadebayo! - - Tree View- Fixed issue where tree view doesn't scroll into view when content overflows
- Fix issue where the
filter
method 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
acceptedFiles
anddefaultAcceptedFiles
- Export
FileError
,FileMimeType
, andFileRejection
types and fix validation issues
- Add support for programmatically controlling the accepted files via
dc02076
Thanks @segunadebayo! - Fix HTML semantic structure forBreadcrumb.Ellipsis
component 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>
4da48e3
Thanks @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
,tokens
as dedicated modules. - Dialog: Use
dvh
anddvw
units instead ofvh
andvw
to 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
32967aa
Thanks @segunadebayo! - Add new TreeView component that is used to represent hierarchical data in a tree structure.
Patch Changes
- #10126
ca40993
Thanks @isBatak! - - Clipboard: Fix issue whereclipboardAnatomy
was not exported from@chakra-ui/react/anatomy
- Combobox
- Expose
reason
toonOpenChange
andonInputValueChange
callbacks - Expose
api.clearHighlightedValue
function to clear highlighted value
- Expose
- Toast: Fix issue where toast
title
ordescription
could not accept React element - Progress: Improve
valueAsString
formatting - Select
- Select highlighted item only if it exists in the collection
- Expose
api.clearHighlightedValue
function to clear highlighted value
- ClientOnly: Support
children
as a function
- Combobox
3.21.1
Patch Changes
8ddeb0b
Thanks @segunadebayo! - - Popover: Fixed issue whereonOpenChange
could be called twice when controlled- Combobox
- Fixed issue where
onInputValueChange
could be called twice when selecting an item - Fixed issue where combobox with
allowCustomValue: true
used within in a form requires two enter keypress to submit
- Fixed issue where
- Progress
- Fix issue where setting orientation to
vertical
don't work - Fix issue where setting
defaultValue
tonull
doesn't show indeterminate state
- Fix issue where setting orientation to
- Toast: Fix issue where app crashes when
toaster.promise
is called without loading option. Theloading
option is now required. A warning will be logged if it is not provided - Combobox, Select, Listbox: Fix issue where rehydrating
defaultValue
orvalue
after fetching items doesn't update thevalueAsString
- Combobox
#10119
6cf8cc6
Thanks @isBatak! - - improveDrawer
recipe to better support conditional variants.- add
Drawer
conditional variants example to the docs and storybook.
- add
#10101
2b4fa6d
Thanks @isBatak! - - Select: Export missing SelectRootComponent type exportd7914ad
Thanks @segunadebayo! - Fix inconsistent handling ofnull
andundefined
for skipping breakpoints using array syntax
3.21.0
Minor Changes
3df43ba
Thanks @segunadebayo! - Add support new entrypoint for/theme
which 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
button
recipe 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
010f256
Thanks @segunadebayo! - - File Upload: Preventedundefined
inacceptedFiles
when 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.ItemText
could not be used withMenu.Item
3.20.0
Minor Changes
65020dd
Thanks @segunadebayo! - - System: Allowundefined
for 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
minStepsBetweenThumbs
isn't computed correctly when interacting with pointer or keyboard. - Fixed issue where
Shift
+ArrowRight
set value to0
instead ofmax
when step is too large (e.g.20
). - Fixed issue where
onValueChangeEnd
doesn'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
transformFiles
context property.Combobox: Fixed issue where
onInputValueChange
doesn't get called whenautoFocus
is set totrue
Pin Input: Fixed issue where input padding could cause clipping of the text when
fontSize
is increased.
Patch Changes
#10081
c2f650b
Thanks @isBatak! - - exportCheckboxRootProviderProps
type#10075
63c267f
Thanks @isBatak! - - exportQuote
typography component and its types
3.19.2
Patch Changes
#10059
a289c3c
Thanks @isBatak! - - System: add explicitundefined
to generated types to support TSexactOptionalPropertyTypes
#10064
10d0a8e
Thanks @mhsattarian! - - Drawer: Fix drawer close animation in RTL- Button
- Fix layout issue when in loading state with icons by using
display: contents
andvisibility: hidden
- Add
data-loading
attribute whenloading
istrue
so allow styling loading state with_loading
pseudo prop
- Fix layout issue when in loading state with icons by using
- Button
3.19.1
Patch Changes
aa9c2b0
Thanks @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
d860d48
Thanks @segunadebayo! - - [New] Combobox Add combobox component for autocomplete text entry.- Progress Circle: Make progress circle transition smoother.
3.18.0
Minor Changes
e91ec7e
Thanks @segunadebayo! - - DownloadTrigger [New] AddDownloadTrigger
component to help download file contents.System
- Fix issue where passing
d
prop tochakra.path
adds 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
ad8cc44
Thanks @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
disabled
prop was not being applied toSegmentGroup.Items
RatingGroup: 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
46075ba
Thanks @segunadebayo! - - Dialog, Drawer: Use correct z-index for dialog and drawer backdrop- SegmentGroup: Fix issue where
orientation
prop toSegmentGroup.Root
doesn't work as expected
- SegmentGroup: Fix issue where
3.16.0
Minor Changes
529244d
Thanks @segunadebayo! - - Global CSS: Improve text selection contrastSystem
- Fix issue where
borderEnd
shorthand was not working despiteborderStart
being present - Fix issue where
system.cva
return type was incorrect - Soften the focus ring for all color palettes
- Fix issue where
Dialog, Drawer: Fix issue where
z-index
was not being applied correctly[Beta] createOverlay: Add
createOverlay
utility for programmatically controlling overlay components (Dialog, Drawer, etc.)
3.15.1
Patch Changes
e3d7db7
Thanks @segunadebayo! - - Fix issue where backdrop could overlap positioner when reopened quickly- Ensure types are consistent with React 19
3.15.0
Minor Changes
2f4ea3b
Thanks @segunadebayo! - - useMediaQuery: Fix type signature to allow skipping the second argumentRadioCard: Fix accessibility issue due to html structure
Slider
- Add support for
origin: end
to align the thumb to the end of the track. - Expose
thumbSize
as CSS variables in the root element. Can be useful for styling the slider.
- Add support for
Menu
- Added
onSelect
event to theMenu.Item
component. - Ensure menu items have unique IDs to improve accessibility and HTML validation.
- Added
3.14.2
Patch Changes
87a072b
Thanks @segunadebayo! - - Fix potential import error from@zag-js/utils
in@ark-ui/react
3.14.1
Patch Changes
0eb769e
Thanks @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/react
to latest version.
- General: Bump
3.14.0
Minor Changes
354eaa6
Thanks @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
eba44a3
Thanks @segunadebayo! - - ColorPickerAdd support for
ColorPicker.ChannelText
componentAdd
ColorPicker.EyeDropper
component that wrapsIconButton
Add
ColorPicker.Slider
andColorPicker.Input
shortcut components to reduce LOC.InputGroup
- Export directly from the
@chakra-ui/react
package
- Export directly from the
Pagination
- Add
Pagination.Items
shortcut component to render the number of pages based on thecount
andpageSize
props. - Add
Pagination.PageText
component to render the current page and total pages.
- Add
3.12.0
Minor Changes
7abe7e3
Thanks @segunadebayo! - - FileUpload:- Add
FileUpload.FileText
to render the list of uploaded file names. - Add
FileUpload.Items
shorcut component to render the list of uploaded files. - Add
FileUpload.List
shortcut component that combinesFileUpload.Items
andFileUpload.ItemGroup
.
- Add
3.11.0
Minor Changes
8789401
Thanks @segunadebayo! - - Accordion- Fix issue where
Accordion.ItemTrigger
doesn't applytextAlign: start
- SegmentGroup
- Add new
SegmentGroup.Items
shortcut component to render multipleSegmentGroup.Item
components based on theitems
prop
- Add new
- Fix issue where
3.10.0
Minor Changes
11bdf77
Thanks @segunadebayo! - - MenuSet the default children of
Menu.Arrow
toMenu.ArrowTip
HoverCard
- Set the default children of
HoverCard.Arrow
toHoverCard.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
52a97d0
Thanks @segunadebayo! - - Skeleton Bring backSkeletonCircle
andSkeletonText
components.Switch
- Transition background color when checked
- Set the default
children
forSwitch.Control
toSwitch.Thumb
to reduce LOC for common use cases.
Checkbox
- Set the default
children
forCheckbox.Control
toCheckbox.Indicator
to reduce LOC for common use cases.
- Set the default
NumberInput
- Set the default
children
forNumberInput.Control
toNumberInput.IncrementTrigger
andNumberInput.DecrementTrigger
to reduce LOC for common use cases.
- Set the default
QrCode
- Set the
QrCode.Frame
component toQrCode.Pattern
to reduce LOC for common use cases.
- Set the
RatingGroup
- Set the default
children
forRatingGroup.Control
to the array ofRatingGroup.Item
components to reduce LOC for common use cases.
- Set the default
Slider
- Add
Slider.Marks
component to render marks on the slider track. This is a closed composition ofSlider.MarkerGroup
andSlider.Marker
to reduce LOC for common use cases. - Add
Slider.Thumbs
component to render thumbs on the slider track. This is a closed composition ofSlider.Thumb
to reduce LOC for common use cases.
- Add
PinInput
- Add support for
attached
variant prop to render a pin input with attached inputs. This removes the need for theGroup
component to wrap the inputs.
- Add support for
3.8.2
Patch Changes
91945b7
Thanks @segunadebayo! - Fix issue wheremt
alias tomarginBlockStart
instead ofmarginTop
#9712
f733a87
Thanks @CerealeZ! - AspectRatio: Fix issue wherecss
prop was not respected
3.8.1
Patch Changes
cdb9459
Thanks @segunadebayo! - - Fix performance regression fromv3.5.x
by reverting memoization logic- Add
useMemo
to provider components and styling hooks to avoid unnecessary recomputations
- Add
3.8.0
Minor Changes
fa5e966
Thanks @segunadebayo! - - Add new hooksuseElementRect
,useForceUpdate
,useLiveRef
,usePrevious
anduseSafeLayoutEffect
- Add new
FocusTrap
component for trapping focus within a container
- Add new
Patch Changes
- #9616
54a73a7
Thanks @mhsattarian! - - Breadcrumb: Fix issue where breadcrumb arrow don't flip in RTL- Snippets / Color Mode: Add
LightMode
andDarkMode
components to force light and dark color mode in a subtree - Docs / Testing: Add testing guideline for Vitest
- Group: Fix issue where
Group
component doesn't skip invalid children
- Snippets / Color Mode: Add
3.7.0
Minor Changes
cb0ffc9
Thanks @segunadebayo! - - Avatar: Add support for passingname
to theAvatarFallback
to render the initials. If noname
orchildren
is passed, it'll render either the initials or a fallback icon.- Hooks: Add
useConst
anduseUpdateEffect
hooks from v2. - Wrap: Bring back the
Wrap
component from v2.
- Hooks: Add
3.6.0
Minor Changes
04a1a07
Thanks @segunadebayo! - - Styled System:- Boost performance of style resolution by removing
JSON.stringify
inmemo
function and avoid memoizing non-primitive arguments. - Connect
assets
token tobackgroundImage
andlistStyleImage
css properties. - Menu, Tooltip: Set
lazyMount
andunmountOnExit
totrue
in theRoot
component 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
StatGroup
component from v2. - Close Button: Add
CloseButton
component.
- Boost performance of style resolution by removing
3.5.1
Patch Changes
34d46e3
Thanks @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-placement
attribute - Snippets / Alert: Deprecate the
Alert
snippet in favor of using theAlert
component directly from@chakra-ui/react
.
- ColorPicker, HoverCard, Tooltip: Fixed intermittent placement shifts
caused by updates to the
3.5.0
Minor Changes
30a12d0
Thanks @segunadebayo! - - Native Select- Fix issue where
disabled
andinvalid
props were not being passed to theNativeSelectField
component. - Persist error focus ring when
invalid
prop is set. - Fix issue where native select isn't readable in dark mode for Windows/Linux devices.
- [New] Loader: Add new
Loader
andLoaderOverlay
components. - [New] Button Group: Add new
ButtonGroup
component similar to v2 for grouping similar buttons. - Button: Add
loading
andloadingText
props to theButton
component. - 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
375e05f
Thanks @segunadebayo! - - [New] Presence: Add component to animate an element using css animation, and control the mount/unmount behavior
Patch Changes
882c7f6
Thanks @segunadebayo! - - Separator: Fix issue wherearia-orientation
was missing in the DOM andorientation
was 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
disableClick
prop.
- FileUpload
4c885df
Thanks @segunadebayo! - - Button, Icon Fix issue where button and icon doesn't export props providersb39ea43
Thanks @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
9c55f21
Thanks @segunadebayo! - Fix issue where icon sizes doesn't work anymore
3.3.2
Patch Changes
855bb29
Thanks @segunadebayo! - - Icon: Refactor icon recipesize=inherit
to allow for composition with button- Snippet / Tooltip: Set
portalled
totrue
by default
- Snippet / Tooltip: Set
#9470
4bd9f8d
Thanks @lcswillems! - - Menu, Select: Use the same semantic token for select_highlighted
state- Toast: Fix issue where toast close trigger was not visible
e4fe984
Thanks @segunadebayo! - Fix issue where using<Icon as={...} />
throws an error, forcing users to use theasChild
approache506044
Thanks @segunadebayo! - Fix issue where factory shows a warning React 19 due to accessingchild.ref
3.3.1
Patch Changes
0fc040a
Thanks @segunadebayo! - HoverCard, Tooltip: Resolved an issue where the controlled open state could become inconsistent during theopening
orclosing
phases.1439548
Thanks @segunadebayo! - Fix issue whereuseRecipe
anduseSlotRecipe
returnsnever
when key does not match built-in recipe.
3.3.0
Minor Changes
#9437
791bcec
Thanks @segunadebayo! - ### Added- Clipboard: Introduced
Clipboard.ValueText
to display clipboard content. - FileUpload:
- Added
preventDropOnDocument
to block file drops on the document when the file upload component is active. - Added
setClipboardFiles
to the API for setting files from clipboard data.
- Added
- Progress: Added support for
onValueChange
anddefaultValue
. - Tabs, Menu, Combobox: Added
navigate
property for custom router navigation when selections render as links. - QrCode:
- Added support for
onValueChange
anddefaultValue
. - Added
QrCode.DownloadTrigger
to 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
end
value whenpageSize
exceededcount
. - QRCode: Fixed
getDataUrl
to generate a properly sized QR code.
- Clipboard: Introduced
#9437
791bcec
Thanks @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
d3f1c19
Thanks @segunadebayo! - Fix issue wherehtmlWidth
andhtmlHeight
doesn't work inImage
orchakra.image
elements.f32cb4a
Thanks @segunadebayo! - Improve typesafety for layer styles to support common shorthands likebg
,bgColor
,bgImage
b11587b
Thanks @segunadebayo! - Fix compound variant matching not working withcolorPalette
prop
3.2.5
Patch Changes
d195ced
Thanks @segunadebayo! - - Snippets / Pagination: Fix issue where pagination page text renders incorrectly when thepageSize
is greater than thecount
value withformat=long
- Snippets / InputGroup: Improve typings for
children
prop to prevent TS errors
- Snippets / InputGroup: Improve typings for
609855d
Thanks @segunadebayo! - Improve type-safety inuseRecipe
anduseSlotRecipe
hooks636c61f
Thanks @segunadebayo! - useMediaQuery: Fix issue where partial media queries likeaspect-ratio < 1
doesn't return the correct result.Good to know: Partial media queries like
aspect-ratio < 1
resolves toaspect-ratio < 1 / 1
in the browser.b1c3f74
Thanks @segunadebayo! - Fix issue where composingInput
component throwsasChild
React HTML prop warning.e7fddd5
Thanks @segunadebayo! - Fix issue wheremergeConfigs
does not override functions55258da
Thanks @segunadebayo! - - FileUpload: Resolved an issue where theaccept
attribute 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
df0ac52
Thanks @segunadebayo! - Fix issue where component hook props (likeUseCheckboxProps
,UseCheckboxGroupProps
, etc.) are not exported.be8f80a
Thanks @segunadebayo! - Fix issue wherechakra.x
factory component props throws TS error in React 19
3.2.3
Patch Changes
d821ab5
Thanks @segunadebayo! - Fix issue where responsive semantic tokens doesn't work as expected.
3.2.2
Patch Changes
7234d75
Thanks @segunadebayo! - - Slider- Add
DraggingIndicator
component 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-height
css variable to keep the menu's height within the available space - System: Fixed issue where exporting
withRootProvider
would result in type error - Snippets / Slider
- Move
MarkerGroup
into theControl
component - Remove hardcoded margin values in favor of recipes and
data-has-mark-label
attribute
- Move
- Add
3.2.1
Patch Changes
- #9240
561ccc0
Thanks @Pagebakers! - - System: Fix issue where exportingwithProvider
andwithContext
would result in type error- Timeline: Fix issue where
TimelineTitle
was missing from the export - Tabs: Fix issue where
useTabs
anduseTabsContext
were not exported - Snippets / ColorPicker: Fix flex direction of
ColorPickerChannelInputs
andColorPickerChannelSliders
- Timeline: Fix issue where
3.2.0
Minor Changes
- #9130
e5880fb
Thanks @segunadebayo! - - [Preview] Add newColorPicker
component to allow users pick a color in hsl, rgb, hsb formats.- Add new
ColorSwatch
component to preview a color. - Fix issue where
mergeConfigs
mutates the underlying configs passed to it.
- Add new
3.1.2
Patch Changes
65952d7
Thanks @segunadebayo! - - General: Fix issue where value change types were not re-exported from Ark UI- Layer Style: Fix issue where
fill.surface
layer style doesn't render the correct styles - Pagination: Fix issue where
PaginationPageText
did not render the correct page range
- Layer Style: Fix issue where
3.1.1
Patch Changes
#9128
0715e2c
Thanks @coverlv! - Fix issue whereuseBreakpointValue
throws error ifssr
is false#9103
1254769
Thanks @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
9a27c2c
Thanks @segunadebayo! - - System: Fix issue where usingas
prop with logic based components doesn't work as expected.DataList: Add support for
bold
variant.Button: Tweak the horizontal padding when size is
sm
.Snippets
- Slider: Add
showValue
prop to render the text value of the slider. - Select
- Add
HiddenSelect
to ensure it works in form submissions. - Fix type inference is lost when using
SelectRoot
component 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
ColorModeProvider
powered bynext-themes
for better customization.
- Slider: Add
Toggle: Add
Toggle
component for toggling between two states. It composes theButton
component.
3.0.2
Patch Changes
20b91bd
Thanks @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
c0020c9
Thanks @segunadebayo! - Fix issue where usingkeyframe
interpolation inanimation
prop doesn't work7d4f898
Thanks @segunadebayo! - Fix issue wherescrollBehavior=outside
doesn't allow scrolling outside the dialog content
3.0.0
Major Changes
#8153
7b6e66a
Thanks @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
jest
tovitest
- Migrate from
tsup
to customrollup
setup for better bundling strategy
#8815
806be96
Thanks @isBatak! - Remove the@chakra-ui/hooks
package in favour of using dedicated, robust libraries likereact-use
andusehooks-ts
Minor Changes
#8121
170198f
Thanks @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
accentColor
property to style props - Add support for
asChild
in chakra factory - Export
toastStore
fromtoast
component - Upgrade
framer-motion
to 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
192c6b1
Thanks @segunadebayo! - Add new fieldset component07b04b1
Thanks @segunadebayo! - - [NEW]: AddRatingGroup
,SegmentControl
- [NEW]: Add
EmptyState
component for empty states - [NEW]: Add
RadioCard
andCheckboxCard
components for card-based selection
- [NEW]: Add
#8568
5fd993b
Thanks @isBatak! - Add Collapsible recipe with default open/close animation3fc49ca
Thanks @segunadebayo! - Add support forFormatNumber
andFormatByte
components3ccbbdf
Thanks @segunadebayo! - ### Motion StylesAdd support for
motionStyle
props.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-right
Slide 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-full
Fade:
fade-in
,fade-out
Scale:
scale-in
,scale-out
You can compose these animations using the
animationName
property 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>
3ccbbdf
Thanks @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>
de9c0a0
Thanks @segunadebayo! - AddDataList
componente77a9b8
Thanks @segunadebayo! - - Add new Timeline component to presenting chronological information or activities.- Trim generated
className
in the DOM. - Add
neutral
status toAlert
component
- Trim generated
763329e
Thanks @segunadebayo! - Add preset and preset-base entrypoints.- The
preset
entrypoint exposes the default theme and recipes for Chakra. - The
preset-base
entrypoint exposes the base utilities and conditions used internally.
- The
925cfd9
Thanks @segunadebayo! - Add ActionBar, Status, Rating, Pagination componentse9a1537
Thanks @segunadebayo! - BREAKING: Change signature ofuseRecipe
,useSlotRecipe
,createSlotRecipeContext
createSlotRecipeContext
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" })
3908155
Thanks @segunadebayo! - RenamecreateStyleContext
tocreateSlotRecipeContext
c654ee3
Thanks @segunadebayo! - Improve performance of styled components to avoid unneeded re-renders.edec8f7
Thanks @segunadebayo! - Add clipboard composition5093e18
Thanks @segunadebayo! - Add cursor pointer to button4c6838c
Thanks @segunadebayo! - - RenameonLabel
andoffLabel
totrackLabel
- Add support for
thumbLabel
prop for rendering an icon within thumb
- Add support for
#8393
623e558
Thanks @segunadebayo! - - Integrate Ark UI components to reduce maintenance surface.- Add
FileUpload
component - Remove
trigger=hover
in favor ofHoverCard
- Replace
Tooltip
,Popover
andHoverCard
with those from Ark UI
- Add
945a777
Thanks @segunadebayo! - BREAKING: Integrate Ark v4. This mostly affects the custom select component that requires the use ofcreateListCollection
now.c26acf0
Thanks @segunadebayo! - Add support for cursor token type55c0839
Thanks @segunadebayo! - Move theProse
component to snippets so it can be customized by the user.952647a
Thanks @segunadebayo! - AddCardTitle
andCardDescription
componentsf4762bf
Thanks @segunadebayo! - Add support for merging multiple system configs into one withincreateSystem
Before:
const config = mergeConfigs(defaultConfig, customConfig) export const system = createSystem(config)
After:
const system = createSystem(defaultConfig, customConfig)
#8218
a89c598
Thanks @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
c2f45ca
Thanks @segunadebayo! - RenameFieldset.Control
toFieldset.Content
1738b90
Thanks @segunadebayo! - - Icon: SetasChild
totrue
by 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
filled
variant tosubtle
Tags: Add new
Tag.StartElement
andTag.EndElement
components to allow for easier styling of the start and end elements
3ccbbdf
Thanks @segunadebayo! - RedesignStepper
component. It's now calledSteps
and manages the state internally, no need to useuseSteps
anymore.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 steps
548470d
Thanks @segunadebayo! - Add custom select from Ark UI and design recipe8b110da
Thanks @segunadebayo! - Support inlining recipe increateRecipeContext
andcreateSlotRecipeContext
for better DX when shipping libraries based on Chakra.This reduces the need for using the Chakra CLI to generate types for custom components.
05793a2
Thanks @segunadebayo! - - Makegray
the default color palette.- Change avatar sm size to
36px
for consistency. - Move
bg
for outline component variants.
- Change avatar sm size to
43f2c7d
Thanks @segunadebayo! - - CheckboxCard [New]Add support for a new
CheckboxCard
component 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
, andindeterminate
state baked in.
<Stack> <Checkmark /> <Checkmark checked /> <Checkmark indeterminate /> <Checkmark disabled /> <Checkmark checked disabled /> <Checkmark indeterminate disabled /> </Stack>
EmptyState [New]
Add new
EmptyState
component 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>
e119ae9
Thanks @segunadebayo! - RenamemotionStyle
toanimationStyle
for better intuitiveness#8575
d4522d9
Thanks @isBatak! - Align theme recipe name with panda3ccbbdf
Thanks @segunadebayo! - Add support forfocusRing
andfocusRingColor
style props that allow to quickly style focus visible state of form controls.The focus ring values can be either
extend
orcontain
<Box asChild focusRing="extend" focusRingColor="pink.500"> <input type="text" /> </Box>
4ff153f
Thanks @segunadebayo! - Speed up intellisence for style props, and add support forstrictTokens
in the CLI.47a8a9e
Thanks @segunadebayo! - - Addinherit
to Spinner recipe size- Refactor button and link button snippets
b6d1d0d
Thanks @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
a89c598
Thanks @segunadebayo! - Add support for_open
and_closed
pseudo 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`
_placeholder
now supports&[data-placeholder]
_placeholderShow
now supports&[data-placeholder-shown]
_fullscreen
now supports&[data-fullscreen]
_empty
now supports&[data-empty]
_expanded
now supports&[data-state=expanded]
_checked
now supports&[data-state-checked]
#8569
eb26857
Thanks @isBatak! - Fix theboxSize
type to allow number values.47b3b5a
Thanks @segunadebayo! - Support array in conditions object. This matches the API in Panda CSS and allow users to define complex selectors like media hover queries.e4f2df0
Thanks @segunadebayo! - AddProse
component to help style markdown content.c243698
Thanks @segunadebayo! - - Add referrerPolicy to Avatar component.- Add CheckboxDescription, CheckboxCardDescription and RadioCardDescription
- Swap
muted
andsubtle
color tokens
Patch Changes
be98566
Thanks @segunadebayo! - Fix checkbox and toast on mobilec941971
Thanks @segunadebayo! - - ConvertTabs
component to use Ark UI- Convert
NumberInput
to use Ark UI
- Convert
#8795
4408573
Thanks @TylerAPfledderer! - Adds style prop names toLayerStyleProperty
union type83366c4
Thanks @segunadebayo! - - Fix regression inmergeConfigs
Decompose
Field
components into smaller components, which can be optionally used withField
Label
which is a generic label componentErrorMessage
which is a generic error message componentHelpText
which is a generic help text component
Refactor components to use Ark UI: Avatar, Progress, CircularProgress, PinInput
0ae054d
Thanks @segunadebayo! - Fix issue wherehideFrom
andhideBelow
doesn't show any autocompletions0a03bcc
Thanks @segunadebayo! - - Fix circular progress element types- Ensure consistent exports in components
#8617
7e9fbf0
Thanks @isBatak! - Refactor text-styles to use tokens instead of raw values.6d4cbbe
Thanks @segunadebayo! - Fix ES module interop for @emotion/is-prop-value that makes Jest throw error.#8857
fdc2b9b
Thanks @stevensecreti! - update mapObject util to not call fn provided on nullish values788f493
Thanks @segunadebayo! - Fix issue where media query css order is inconsistent with v287cf70c
Thanks @segunadebayo! - Revert text recipe to prevent color regressions#8740
d5a225f
Thanks @Pagebakers! - Use correct extension for ESM exports#8905
807a581
Thanks @stevensecreti! - Added transform function to backgroundClip to appropriately handle 'text' value#8739
651561b
Thanks @Pagebakers! - Added /anatomy to exports#8792
4dd77ec
Thanks @TylerAPfledderer! - Updates the exposed list of slot anatomy to ensure all anatomy is included for use in type-checking extend recipe configs.bffb68f
Thanks @segunadebayo! - - Pagination: Fix issue page props were not forwarded correctly.- PinInput: Fix issue mask props were not forwarded correctly.
#8601
1867d66
Thanks @isBatak! - Fixblur
property token conversion to CSS variable.32a454d
Thanks @segunadebayo! - Add missinguse client
directives to several components#8854
388716d
Thanks @codebutler! - Fix issue where target was not passed to link overlay#8475
9224f4e
Thanks @ryo-manba! - Addaria-current
attribute to stepper
3.0.0-next.32
Minor Changes
05793a2
Thanks @segunadebayo! - - Makegray
the default color palette.- Change avatar sm size to
36px
for consistency. - Move
bg
for outline component variants.
- Change avatar sm size to
c243698
Thanks @segunadebayo! - - Add referrerPolicy to Avatar component.- Add CheckboxDescription, CheckboxCardDescription and RadioCardDescription
- Swap
muted
andsubtle
color tokens
3.0.0-next.31
Minor Changes
47a8a9e
Thanks @segunadebayo! - - Addinherit
to Spinner recipe size- Refactor button and link button snippets
3.0.0-next.30
Minor Changes
1738b90
Thanks @segunadebayo! - - Icon: SetasChild
totrue
by 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
filled
variant tosubtle
Tags: Add new
Tag.StartElement
andTag.EndElement
components to allow for easier styling of the start and end elements
3.0.0-next.29
Minor Changes
c2f45ca
Thanks @segunadebayo! - RenameFieldset.Control
toFieldset.Content
Patch Changes
- #8905
807a581
Thanks @stevensecreti! - Added transform function to backgroundClip to appropriately handle 'text' value
3.0.0-next.28
Minor Changes
47b3b5a
Thanks @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
5093e18
Thanks @segunadebayo! - Add cursor pointer to button945a777
Thanks @segunadebayo! - BREAKING: Integrate Ark v4. This mostly affects the custom select component that requires the use ofcreateListCollection
now.c26acf0
Thanks @segunadebayo! - Add support for cursor token type
Patch Changes
#8857
fdc2b9b
Thanks @stevensecreti! - update mapObject util to not call fn provided on nullish values#8854
388716d
Thanks @codebutler! - Fix issue where target was not passed to link overlay
3.0.0-next.26
Patch Changes
6d4cbbe
Thanks @segunadebayo! - Fix ES module interop for @emotion/is-prop-value that makes Jest throw error.
3.0.0-next.25
Patch Changes
788f493
Thanks @segunadebayo! - Fix issue where media query css order is inconsistent with v2
3.0.0-next.24
Major Changes
- #8815
806be96
Thanks @isBatak! - Remove the@chakra-ui/hooks
package in favour of using dedicated, robust libraries likereact-use
andusehooks-ts
3.0.0-next.23
Minor Changes
edec8f7
Thanks @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
55c0839
Thanks @segunadebayo! - Move theProse
component to snippets so it can be customized by the user.
Patch Changes
be98566
Thanks @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
192c6b1
Thanks @segunadebayo! - Add new fieldset component
Patch Changes
#8795
4408573
Thanks @TylerAPfledderer! - Adds style prop names toLayerStyleProperty
union type#8792
4dd77ec
Thanks @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
4c6838c
Thanks @segunadebayo! - - RenameonLabel
andoffLabel
totrackLabel
- Add support for
thumbLabel
prop for rendering an icon within thumb
- Add support for
f4762bf
Thanks @segunadebayo! - Add support for merging multiple system configs into one withincreateSystem
Before:
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
e9a1537
Thanks @segunadebayo! - BREAKING: Change signature ofuseRecipe
,useSlotRecipe
,createSlotRecipeContext
createSlotRecipeContext
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" })
8b110da
Thanks @segunadebayo! - Support inlining recipe increateRecipeContext
andcreateSlotRecipeContext
for 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
d5a225f
Thanks @Pagebakers! - Use correct extension for ESM exports#8739
651561b
Thanks @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
e119ae9
Thanks @segunadebayo! - RenamemotionStyle
toanimationStyle
for better intuitiveness
Patch Changes
87cf70c
Thanks @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
3908155
Thanks @segunadebayo! - RenamecreateStyleContext
tocreateSlotRecipeContext
952647a
Thanks @segunadebayo! - AddCardTitle
andCardDescription
componentsb6d1d0d
Thanks @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
3fc49ca
Thanks @segunadebayo! - Add support forFormatNumber
andFormatByte
components
Patch Changes
bffb68f
Thanks @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
0ae054d
Thanks @segunadebayo! - Fix issue wherehideFrom
andhideBelow
doesn'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
e77a9b8
Thanks @segunadebayo! - - Add new Timeline component to presenting chronological information or activities.- Trim generated
className
in the DOM. - Add
neutral
status toAlert
component
- 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
3ccbbdf
Thanks @segunadebayo! - ### Motion StylesAdd support for
motionStyle
props.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-right
Slide 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-full
Fade:
fade-in
,fade-out
Scale:
scale-in
,scale-out
You can compose these animations using the
animationName
property 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>
3ccbbdf
Thanks @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>
c654ee3
Thanks @segunadebayo! - Improve performance of styled components to avoid unneeded re-renders.3ccbbdf
Thanks @segunadebayo! - RedesignStepper
component. It's now calledSteps
and manages the state internally, no need to useuseSteps
anymore.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 steps
3ccbbdf
Thanks @segunadebayo! - Add support forfocusRing
andfocusRingColor
style props that allow to quickly style focus visible state of form controls.The focus ring values can be either
extend
orcontain
<Box asChild focusRing="extend" focusRingColor="pink.500"> <input type="text" /> </Box>
Patch Changes
0a03bcc
Thanks @segunadebayo! - - Fix circular progress element types- Ensure consistent exports in components
#8617
7e9fbf0
Thanks @isBatak! - Refactor text-styles to use tokens instead of raw values.#8601
1867d66
Thanks @isBatak! - Fixblur
property 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
32a454d
Thanks @segunadebayo! - Add missinguse client
directives 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
4ff153f
Thanks @segunadebayo! - Speed up intellisence for style props, and add support forstrictTokens
in 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
925cfd9
Thanks @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
07b04b1
Thanks @segunadebayo! - - [NEW]: AddRatingGroup
,SegmentControl
- [NEW]: Add
EmptyState
component for empty states - [NEW]: Add
RadioCard
andCheckboxCard
components for card-based selection
- [NEW]: Add
#8568
5fd993b
Thanks @isBatak! - Add Collapsible recipe with default open/close animation43f2c7d
Thanks @segunadebayo! - - CheckboxCard [New]Add support for a new
CheckboxCard
component 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
, andindeterminate
state baked in.
<Stack> <Checkmark /> <Checkmark checked /> <Checkmark indeterminate /> <Checkmark disabled /> <Checkmark checked disabled /> <Checkmark indeterminate disabled /> </Stack>
EmptyState [New]
Add new
EmptyState
component 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
d4522d9
Thanks @isBatak! - Align theme recipe name with panda#8569
eb26857
Thanks @isBatak! - Fix theboxSize
type 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
e4f2df0
Thanks @segunadebayo! - AddProse
component to help style markdown content.
Patch Changes
#8475
9224f4e
Thanks @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
de9c0a0
Thanks @segunadebayo! - AddDataList
component763329e
Thanks @segunadebayo! - Add preset and preset-base entrypoints.- The
preset
entrypoint exposes the default theme and recipes for Chakra. - The
preset-base
entrypoint 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
83366c4
Thanks @segunadebayo! - - Fix regression inmergeConfigs
- Decompose
Field
component - Refactor
Avatar
to use Ark UI - Refactor
Progress
to 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
548470d
Thanks @segunadebayo! - Add custom select from Ark UI and design recipe
Patch Changes
c941971
Thanks @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
7b6e66a
Thanks @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
jest
tovitest
- Migrate from
tsup
to customrollup
setup for better bundling strategy
Minor Changes
#8121
170198f
Thanks @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
accentColor
property to style props - Add support for
asChild
in chakra factory - Export
toastStore
fromtoast
component - Upgrade
framer-motion
to 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
623e558
Thanks @segunadebayo! - - Integrate Ark UI components to reduce maintenance surface.- Add
FileUpload
component - Remove
trigger=hover
in favor ofHoverCard
- Replace
Tooltip
,Popover
andHoverCard
with those from Ark UI
- Add
#8218
a89c598
Thanks @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
a89c598
Thanks @segunadebayo! - Add support for_open
and_closed
pseudo 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`
_placeholder
now supports&[data-placeholder]
_placeholderShow
now supports&[data-placeholder-shown]
_fullscreen
now supports&[data-fullscreen]
_empty
now supports&[data-empty]
_expanded
now supports&[data-state=expanded]
_checked
now supports&[data-state-checked]
Patch Changes
- Updated dependencies []:
- @chakra-ui/hooks@3.0.0-next.0
- @chakra-ui/utils@3.0.0-next.0