File size: 29,201 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 |
---
title: Version 3.x
description:
Explore the changelog for Chakra UI version 3.x. Learn about the latest
features, bug fixes, and improvements.
---
## [3.23.0](./#3.23.0) - 2025-07-26
### Added
- **System**: Add `unstyled` prop support to compound component children to
opt-out of recipe styles per component.
```tsx
<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
### Fixed
- **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 expose `recipes`, `slotRecipes`,
`breakpoints`, `keyframes`, `textStyles`, `layerStyles`, `animationStyles`,
`globalCss`, `cssVarsPrefix`, `cssVarsRoot`, `semanticTokens`, `tokens` as
dedicated modules.
- **Dialog**
- Use `dvh` and `dvw` units instead of `vh` and `vw` to dynamically adjust to
viewport size changes.
- Fix issue where dialog backdrop doesn't have the correct z-index when used
in a nested dialog.
- **Native Select**: Ensure height is consistent with input and select across
sizes.
- **Breadcrumb**: Fix HTML semantic structure for `Breadcrumb.Ellipsis`
component by changing the underlying element from `<span>` to `<li>`.
```tsx
// 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>
```
- **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` and `defaultAcceptedFiles`
- Export `FileError`, `FileMimeType`, and `FileRejection` types and fix
validation issues
## [3.22.0](./#3.22.0) - 2025-07-07
### Added
- **TreeView**: Add new `TreeView` component that is used to represent
hierarchical data in a tree structure.
### Fixed
- **Clipboard**: Fix issue where `clipboardAnatomy` was not exported from
`@chakra-ui/react/anatomy`
- **Combobox**
- Expose `reason` to `onOpenChange` and `onInputValueChange` callbacks
- Expose `api.clearHighlightedValue` function to clear highlighted value
- **Toast**: Fix issue where toast `title` or `description` 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
## [3.21.1](./#3.21.1) - 2025-06-28
### Fixed
- **CLI**: Fix issue where `typegen` command fails silently with misleading
console output when prettier exits with a formatting error
- **Select**: Export missing SelectRootComponent type export
- **System**: Fix inconsistent handling of `null` and `undefined` for skipping
breakpoints using array syntax
- **Popover**: Fixed issue where `onOpenChange` 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
- **Progress**
- Fix issue where setting orientation to `vertical` don't work
- Fix issue where setting `defaultValue` to `null` doesn't show indeterminate
state
- **Toast**: Fix issue where app crashes when `toaster.promise` is called
without loading option. The `loading` option is now required. A warning will
be logged if it is not provided
- **Combobox, Select, Listbox**: Fix issue where rehydrating `defaultValue` or
`value` after fetching items doesn't update the `valueAsString`
- **Drawer**: Improve `Drawer` recipe to better support conditional variants and
add conditional variants example to the docs and storybook
## [3.21.0](./#3.21.0) - 2025-06-11
### Added
- 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:
```tsx
import { createSystem, defaultBaseConfig } from "@chakra-ui/react"
import { buttonRecipe } from "@chakra-ui/react/theme"
export const system = createSystem(defaultBaseConfig, {
theme: {
recipes: {
button: buttonRecipe,
},
},
})
```
### Fixed
- **File Upload**: Prevented `undefined` in `acceptedFiles` 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 with `Menu.Item`
## [3.20.0](./#3.20.0) - 2025-06-06
### Added
- **File Upload**: Added support for transforming uploaded files via
`transformFiles` context property.
- **Quote**: Export `Quote` typography component and its types
### Fixed
- **System**: Allow `undefined` for optional properties in CSS and recipe types
- **Color 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 to `0` instead of `max`
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.
- **Combobox**: Fixed issue where `onInputValueChange` doesn't get called when
`autoFocus` is set to `true`
- **Pin Input**: Fixed issue where input padding could cause clipping of the
text when `fontSize` is increased.
- **Checkbox**: Export `CheckboxRootProviderProps` type
- **Charts**: Fixed issue where `formatter` prop doesn't take effect in the
tooltip
## [3.19.2](./#3.19.2) - 2025-06-02
### Fixed
- **System**: add explicit `undefined` to generated types to support TS
`exactOptionalPropertyTypes`
- **Drawer**: Fix drawer close animation in RTL
- **Button**
- Fix layout issue when in loading state with icons by using
`display: contents` and `visibility: hidden`
- Add `data-loading` attribute when `loading` is `true` so allow styling
loading state with `_loading` pseudo prop
- **Input**: Fix issue where invalid styles don't persist for `variant=flushed`
## [3.19.1](./#3.19.1) - 2025-05-17
### Fixed
- **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](./#3.19.0) - 2025-05-15
### Added
- **Combobox [New]** Add `Combobox` component for autocomplete text entry.
```tsx
<Combobox.Root>
<Combobox.Label />
<Combobox.Control>
<Combobox.Input />
<Combobox.IndicatorGroup>
<Combobox.ClearTrigger />
<Combobox.Trigger />
</Combobox.IndicatorGroup>
</Combobox.Control>
<Portal>
<Combobox.Positioner>
<Combobox.Content>
<Combobox.Item />
</Combobox.Content>
</Combobox.Positioner>
</Portal>
</Combobox.Root>
```
### Fixed
- **Progress Circle**: Fix issue where progress circle transition was not
smooth.
## [3.18.0](./#3.18.0) - 2025-05-14
### Added
- **DownloadTrigger [New]** Add `DownloadTrigger` component to help download
file contents.
### Fixed
- **System**
- Fix issue where passing `d` prop to `chakra.path` adds it to styles not as a
direct attribute.
- Fix issue where responsive semantic tokens did not get applied.
- **Select**: Fix issue where indicator group doesn't align correctly in RTL
layouts.
## [3.17.0](./#3.17.0) - 2025-05-01
### Added
- **Toast**: 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
### Fixed
- **Breadcrumb**: Prevent screen reader from reading the separator
- **SegmentGroup**: Fix issue where `disabled` prop was not being applied to
`SegmentGroup.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](./#3.16.1) - 2025-04-20
### Fixed
- **Dialog, Drawer**: Use correct z-index for dialog and drawer backdrop
- **SegmentGroup**: Fix issue where `orientation` prop to `SegmentGroup.Root`
doesn't work as expected.
## [3.16.0](./#3.16.0) - 2025-04-14
### Added
- **Global CSS**: Improve text selection contrast
- **System**
- Fix issue where `borderEnd` shorthand was not working despite `borderStart`
being present
- Fix issue where `system.cva` return type was incorrect
- Soften the focus ring for all color palettes
- **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](./#3.15.1) - 2025-04-07
### Fixed
- **General**: Ensure types are consistent with React 19
- **Dialog, Drawer**: Fix issue where backdrop could overlap positioner when
re-opened quickly
- **CLI**: Improve CLI response when passing an unknown snippet id
### Changed
- **BarList, BarSegment**: Rename `showTooltip` with `tooltip` prop to support
custom tooltips.
## [3.15.0](./#3.15.0) - 2025-03-29
### Added
- **Charts**: Initial release of the `@chakra-ui/charts` package.
### Changed
- **useMediaQuery**: Fix type signature to allow skipping the second argument
- **RadioCard**: 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
- **Menu**
- Added `onSelect` event to the `Menu.Item` component
- Ensure menu items have unique IDs to improve accessibility and HTML
validation
## [3.14.2](./#3.14.2) - 2025-03-24
### Fixed
Fix potential import error from `@zag-js/utils` in `@ark-ui/react`.
## [3.14.1](./#3.14.1) - 2025-03-24
### Fixed
- **System**: Fix issue where output of `<system>.css(...)` from Chakra UI can't
be assigned to `Interpolation<Theme>` from `@emotion/react`.
- **General**: Bump `@ark-ui/react` to latest version.
## [3.14.0](./#3.14.0) - 2025-03-14
### Changed
- **General**: Improve render performance by upgrading to the latest Ark UI v5.
This brings a **1.5x - 4x** improvements across components. Learn more from
the
[Ark UI v5 changelog](https://ark-ui.com/react/docs/overview/changelog#500---2025-03-06).
- **RadioGroup**: Allow passing `null` as a valid value to clear the value. This
means the signature of `onValueChange` now supports `string | null` instead of
just `string`.
> This might be a potential breaking TS change but it's a needed change to
> allow clearing the value.
## [3.13.0](./#3.13.0) - 2025-03-13
### Added
- **ColorPicker**
- Add support for `ColorPicker.ChannelText` component
- Add `ColorPicker.EyeDropper` component that wraps `IconButton`
- Add `ColorPicker.Slider` and `ColorPicker.Input` shortcut components to
reduce LOC.
- **InputGroup**
- Export directly from the `@chakra-ui/react` package
- **Pagination**
- Add `Pagination.Items` shortcut component to render the number of pages
based on the `count` and `pageSize` props.
- Add `Pagination.PageText` component to render the current page and total
pages.
## [3.12.0](./#3.12.0) - 2025-03-10
### Added
- **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 combines `FileUpload.Items`
and `FileUpload.ItemGroup`.
## [3.11.0](./#3.11.0) - 2025-03-09
### Fixed
- **Accordion**
- Fix issue where `Accordion.ItemTrigger` doesn't apply `textAlign: start`
### Added
- **SegmentGroup**
- Add new `SegmentGroup.Items` shortcut component to render multiple
`SegmentGroup.Item` components based on the `items` prop
## [3.10.0](./#3.10.0) - 2025-03-08
### Changed
- **Menu**
- Set the default children of `Menu.Arrow` to `Menu.ArrowTip`, reducing LOC in
common use cases.
- **HoverCard**
- Set the default children of `HoverCard.Arrow` to `HoverCard.ArrowTip`,
reducing LOC in common use cases.
- **Dialog, Drawer**
- Update recipe to include absolute positioning styles for close trigger,
instead of relying on snippet styles.
## [3.9.0](./#3.9.0) - 2025-03-05
### Added
- **Skeleton** Bring back `SkeletonCircle` and `SkeletonText` components from
v2.
- **Switch**
- Transition background color when checked
- Set `Switch.Control` to include `Switch.Thumb` as its default children,
reducing LOC in common use cases.
- **Checkbox**
- Set `Checkbox.Control` to include `Checkbox.Indicator` as its default
children, reducing LOC in common use cases.
- **NumberInput**
- Set `NumberInput.Control` to include `NumberInput.IncrementTrigger` and
`NumberInput.DecrementTrigger` as its default children, reducing LOC in
common use cases.
- **QrCode**
- Set `QrCode.Frame` to include `QrCode.Pattern` as its default children,
reducing LOC in common use cases.
- **RatingGroup**
- Set `RatingGroup.Control` to include an array of `RatingGroup.Item`
components as its default children, reducing LOC in common use cases.
- **Slider**
- Add `Slider.Marks` component to render marks on the slider track. This is a
closed composition of `Slider.MarkerGroup` and `Slider.Marker` to reduce LOC
for common use cases.
- Add `Slider.Thumbs` component to render thumbs on the slider track. This is
a closed composition of `Slider.Thumb` to reduce LOC for common use cases.
- **PinInput**
- Add support for `attached` variant prop to render a pin input with attached
inputs. This removes the need for the `Group` component to wrap the inputs.
- **Tooltip, Popover**
- Set `Tooltip.Arrow` and `Popover.Arrow` to include `Tooltip.ArrowTip` and
`Popover.ArrowTip` as its default children, reducing LOC in common use
cases.
## [3.8.2](./#3.8.2) - 2025-03-04
### Fixed
- **AspectRatio:** Fix issue where `css` prop was not respected
- **System:** Fix issue where `mt` shorthand resolves to `marginBlockStart`
instead of `marginTop`
## [3.8.1](./#3.8.1) - 2025-02-19
### Fixed
- Fix performance regression from `v3.5.x` by reverting memoization logic
- Add `useMemo` to provider components and styling hooks to avoid unnecessary
recomputations
## [3.8.0](./#3.8.0) - 2025-02-09
### Added
- **[New] Hooks:**
- `useElementRect`: Get the dimensions and position of an element
- `useForceUpdate`: Force a component re-render
- `useLiveRef`: Create a ref that stays up-to-date with its value
- `usePrevious`: Access the previous value of a state or prop
- `useSafeLayoutEffect`: A safer version of `useLayoutEffect`
- **[New] Focus Trap:** Add `FocusTrap` component for trapping focus within a
container
### Fixed
- **Breadcrumb:** Fix issue where breadcrumb arrow doesn't flip in RTL mode
- **Group:** Fix issue where `Group` component doesn't skip invalid children
### Added
- **Color Mode:** Add `LightMode` and `DarkMode` components to force light and
dark color mode in a subtree
## [3.7.0](./#3.7.0) - 2025-02-04
### Added
- **Avatar:** Add support for passing `name` to the `AvatarFallback` to render
the initials. If no `name` or `children` is passed, it'll render either the
initials or a fallback icon.
- **[New] Hooks:** Add `useConst` and `useUpdateEffect` hooks from v2.
- **[New] Wrap:** Bring back the `Wrap` component from v2.
## [3.6.0](./#3.6.0) - 2025-02-02
### Fixed
- **CLI:** Fix issue where CLI doesn't properly check for existing files when
adding snippets.
### Added
- **[New] Close Button:** Add `CloseButton` component.
- **Stat:** Bring back `StatGroup` component from v2.
- **Avatar:** Bring back `AvatarGroup` component from v2.
### Changed
- **Styled System:**
- Boost performance of style resolution by removing `JSON.stringify` in `memo`
function and avoid memoizing non-primitive arguments.
- Connect `assets` token to `backgroundImage` and `listStyleImage` css
properties.
- **Menu, Tooltip:** Set `lazyMount` and `unmountOnExit` to `true` in the `Root`
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.
## [3.5.1](./#3.5.1) - 2025-01-24
### Fixed
- **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 the
`Alert` component directly from `@chakra-ui/react`.
## [3.5.0](./#3.5.0) - 2025-01-24
### Fixed
- **Native Select**
- Fix issue where `disabled` and `invalid` props were not being passed to the
`NativeSelectField` 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.
### Added
- **[New] Loader:** Add new `Loader` and `LoaderOverlay` components.
- **[New] Button Group:** Add new `ButtonGroup` component similar to v2 for
grouping similar buttons.
- **Button:** Add `loading` and `loadingText` props to the `Button` component.
### Changed
- **Snippets / Menu:** Refactor checkbox item to fix rendering
- **Snippets / Button:** Removed the button snippet in favor of built-in
component.
## [3.4.0](./#3.4.0) - 2025-01-17
### Added
- **[NEW] Presence:** Add new presence component to animate the entry and exit
of an element while controlling the render behavior.
### Fixed
- **Separator**: Fix issue where `aria-orientation` was missing in the DOM and
`orientation` was added instead.
- **Button, Icon** Fix issue where button and icon doesn't export props
providers
- **System**: Fix performance issue where initial render time feels slower
compared to v2 due to the global style computation in the provider component.
[See Discussion](https://github.com/chakra-ui/chakra-ui/discussions/9488#discussioncomment-11868684)
- **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.
## [3.3.3](./#3.3.3) - 2025-01-16
### Fixed
- **Icon**: Fix regression where icon sizes doesn't work anymore
## [3.3.2](./#3.3.2) - 2025-01-16
### Fixed
- **Icon**
- Refactor icon recipe `size=inherit` to allow for composition with button
- Fix issue where using `<Icon as={...} />` throws an error, forcing users to
use the `asChild` approach
- **Menu, Select:** Use the same semantic token for select `_highlighted` state
- **Snippet, Tooltip:** Set `portalled` to `true` by default
- **Toast:** Fix issue where toast close trigger was not visible
- **Factory:** Fix issue where factory shows a warning React 19 due to accessing
`child.ref`
## [3.3.1](./#3.3.1) - 2025-01-12
### Fixed
- **HoverCard, Tooltip**: Resolved an issue where the controlled open state
could become inconsistent during the `opening` or `closing` phases.
- **System**: Fix issue where `useRecipe` and `useSlotRecipe` returns `never`
when key does not match built-in recipe.
## [3.3.0](./#3.3.0) - 2025-01-09
### Added
- **[New] QRCode**: Add new component for converting text and links to QR codes.
```tsx
<QrCode.Root value="..." size="md">
<QrCode.Frame>
<QrCode.Pattern />
</QrCode.Frame>
</QrCode.Root>
```
- **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.
- **Progress**: Added support for`onValueChange` and `defaultValue`.
- **Tabs, Menu**: Added `navigate` property for custom router navigation when
selections render as links.
- **CLI**: Add support for `--tsx` flag in the `snippet add` command to allow
explicitly specifying tsx/jsx file generation.
```bash
npx @chakra-ui/cli snippet add [...components] --tsx
```
- **[New] Panda**: Initial release of `@chakra-ui/panda-preset`. This allows you
to use Chakra's design system in a Panda CSS project.
### Fixed
- **Collapsible**: Fixed a bug where the opening animation replayed when an open
collapsible was re-rendered.
- **Dialog, Popover**: Fixed 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 be out of sync with
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 when `pageSize` exceeded `count`.
- **Image**: Fix issue where `htmlWidth` and `htmlHeight` doesn't work in
`Image` or `chakra.image` elements.
- **System**
- Improve typesafety for layer styles to support common shorthands like `bg`,
`bgColor`, `bgImage`.
- Fix compound variant matching not working with `colorPalette` prop.
## [3.2.5](./#3.2.5) - 2025-01-04
### Fixed
- **useMediaQuery**: Fix issue where partial media queries like
`aspect-ratio < 1` doesn't return the correct result.
> **Good to know**: Partial media queries like `aspect-ratio < 1` resolves to
> `aspect-ratio < 1 / 1` in the browser.
- **System**
- Improve type-safety in `useRecipe` and `useSlotRecipe` hooks
- Fix issue where composing `Input` component throws `asChild` React HTML prop
warning.
- Fix issue where `mergeConfigs` does not override functions
- **Snippets / Pagination**: Fix issue where pagination page text renders
incorrectly when the `pageSize` is greater than the `count` value with
`format=long`
- **Snippets / InputGroup**: Improve typings for `children` prop to prevent TS
errors
- **FileUpload**: Resolved an issue where the `accept` 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](./#3.2.4) - 2024-12-30
### Fixed
- Fix issue where component hook props (like `UseCheckboxProps`,
`UseCheckboxGroupProps`, etc.) are not exported.
- **System**: Fix issue where `chakra.x` factory component props throws TS error
in React 19
## [3.2.3](./#3.2.3) - 2024-12-05
### Fixed
- **System**: Fix issue where responsive semantic tokens doesn't work as
expected
## [3.2.2](./#3.2.2) - 2024-11-29
### Fixed
- **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 the `Control` component
- Remove hardcoded margin values in favor of recipes and `data-has-mark-label`
attribute
- **CLI**: Output the real version from `package.json`
## [3.2.1](./#3.2.1) - 2024-11-26
### Fixed
- **System**: Fix issue where exporting `withProvider` and `withContext` would
result in type error
- **Timeline**: Fix issue where `TimelineTitle` was missing from the export
- **Tabs**: Fix issue where `useTabs` and `useTabsContext` were not exported
- **Snippets / ColorPicker**: Fix flex direction of `ColorPickerChannelInputs`
and `ColorPickerChannelSliders`
- **CLI**
- Fix issue where npmDependencies for snippets were not auto-installed
- Support React Router 7 framework detection
## [3.2.0](./#3.2.0) - 2024-11-20
### Added
- **Input:** Add support for `use-mask-input` library to mask the input shape
- **CLI**: Add support for `--all` flag to add all snippets. By default, we only
install a minimal/recommended set of snippets
> **Recommended snippets:** provider, avatar, button, checkbox, radio,
> input-group, slider, popover, dialog, drawer, tooltip, field
If you want to add all snippets, you can use the `--all` flag
- **[Preview]** Add new `ColorPicker` component to allow users pick a color in
hsl, rgb, hsb formats
- **[Preview]** Add new `ColorSwatch` component to preview a color
### Fixed
- **System**: Fix issue where `mergeConfigs` mutates the underlying configs
passed to it
- **CLI:** Fix issue where typegen doesn't work when CLI installed globally or
run using `npx`
## [3.1.2](./#3.1.2) - 2024-11-15
### Fixed
- **General:** Fix issue where value change types and components were not
re-exported from Ark UI
- **Layer Style:** Fix issue where `fill.surface` layer style doesn't render the
correct styles
- **Snippets / Pagination:** Fix issue where `PaginationPageText` did not render
the correct page range
## [3.1.1](./#3.1.1) - 2024-11-09
### Fixed
- **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`
- **useBreakpointValue**: Fix issue where hook throws error if `ssr` is `false`
## [3.1.0](./#3.1.0) - 2024-11-04
### Fixed
- **CLI**: Fix issue where adding a snippet with `--outdir` still creates
snippets a `src/components/ui` directory.
- **System:** Fix issue where using `as` prop with logic based components
doesn't work as expected.
### Added
- **DataList:** Add support for `bold` variant.
- **Toggle:** Add `Toggle` component for toggling between two states. It
composes the `Button` component.
### Changed
- **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
- ColorMode: Fix type error when using the latest `next-themes`.
- Provider: Forward props to `ColorModeProvider` powered by `next-themes` for
better customization.
## [3.0.2](./#3.0.2) - 2024-10-29
### Changed
- **Snippets / Toaster**: Improve toaster styling by adding
`width={{ md: "sm" }}` to the toast root.
### Fixed
- **InputAddon**: Fix issue with input addon not stretched correctly.
- **CLI**
- Fix issue with vite setup where `.mjs` and `mts` files were not considered.
- Fix issue where style props types show as `any` when using `strictTokens`.
## [3.0.1](./#3.0.1) - 2024-10-25
### Changed
- Improve placeholder and selection styles
### Fixed
- Fix for custom keyframes not being picked up by autocomplete
- Fix issue where `scrollBehavior=outside` doesn't allow scrolling outside the
dialog content
## [3.0.0](./#3.0.0) - 2024-10-22
### Changed
Visit the [Migration Guide](https://chakra-ui.com/docs/get-started/migration)
|