Releases

Radix Primitives releases and their changelogs.

All Primitives

  • ✨ Improve polymorphic types #648

Accordion 0.0.16

  • 🔥 Rename Accordion.Button to Accordion.Trigger #651
  • 🔥 Rename Accordion.Panel to Accordion.Content #651
  • 🔥 Rename custom property accordingly (--radix-accordion-content-height) #651
  • 🔥 type=“single” Accordion now has a new collapsible prop which is false by default. This means that the default behaviour has now changed. By default a user cannot close all items. #651

Alert Dialog 0.0.18

  • 🔥 Allow preventing default in onPointerDownOutside without inadvertently preventing focus #654

Checkbox 0.0.16

  • 🔥 onCheckedChange(event) is now onCheckedChange(checked: CheckedState) #672
  • 🐛 Improve compatibility with native form validation #650
  • 🐛 Allow stopping propagation on Checkbox onClick #672
  • 🐛 Improve compatibility with native label #672
  • 🐛 Improve accessibility when wrapped in native label #672

Collapsible 0.0.16

  • 🔥 Rename Collapsible.Button to Collapsible.Trigger #651

Context Menu 0.0.22

  • ✨ Add submenu support #682
  • ✨ Add ContextMenu.TriggerItem #682
  • ✨ Add ContextMenu.Arrow #682
  • ✨ Add dir prop for RTL support with submenus #682
  • 🔥 Allow preventing default in onPointerDownOutside without inadvertently preventing focus #654
  • 🔥 Remove ContextMenu.Content side prop #658
  • 🔥 Remove ContextMenu.Content align prop #658
  • 🔥 If you had sideOffset on ContextMenu.Content before, you should now use alignOffset. This is to standardize vertical alignment for both root and sub-menus. #712
  • 🔥 onFocusOutside is now a custom event #671
  • 🐛 Improve support of content and item with no padding #658
  • 🐛 Align with WAI-ARIA spec by focusing first item when opening via keyboard #694

Dialog 0.0.18

  • 🔥 Allow preventing default in onPointerDownOutside without inadvertently preventing focus #654

Dropdown Menu 0.0.21

  • ✨ Add submenu support #682
  • ✨ Add DropdownMenu.TriggerItem #682
  • ✨ Add dir prop for RTL support with submenus #682
  • 🔥 Allow preventing default in onPointerDownOutside without inadvertently preventing focus #654
  • 🔥 onFocusOutside is now a custom event #671
  • 🔥 The up arrow no longer opens the menu #702
  • 🐛 Align with WAI-ARIA spec by focusing first item when opening via keyboard #694

Popover 0.0.18

  • 🔥 Allow preventing default in onPointerDownOutside without inadvertently preventing focus #654
  • 🔥 onFocusOutside is now a custom event #671

Radio Group 0.0.17

  • 🔥 onValueChange(event) is now onValueChange(value: string) #685
  • 🔥 Remove RadioGroup.Item onCheckedChange prop #685
  • 🐛 Improve compatibility with native form validation #650
  • 🐛 Improve usage within forms #685

ScrollArea 0.0.14

  • 🎉 Brand new version with a simpler API #624
  • ✨ Improve Safari support #624
  • ✨ Improve RTL support #624
  • ✨ Improve touch support #624
  • Scrollbar mount/unmount can now be animated #624
  • ✨ Add minimum width/height to thumb so it's always grabbable #624
  • ✨ Move functional CSS into component to improve DX #624
  • ✨ Bundle size significantly reduced #624
  • 🔥 Remove overflowX and overflowY props #624
  • 🔥 Remove ScrollAreaButtonStart, ScrollAreaButtonEnd and ScrollAreaTrack #624
  • 🔥 Rename scrollbarVisibility prop to type. The values are auto, always, scroll or hover #624
  • 🔥 Rename scrollbarVisibilityRestTimeout prop to scrollHideDelay #624
  • 🔥 Remove trackClickBehavior prop as we've removed built-in animation. Clicking on track always snaps to pointer position #624
  • 🔥 ScrollAreaScrollbarX and ScrollAreaScrollbarY are now <ScrollAreaScrollbar orientation="horizontal" /> and <ScrollAreaScrollbar orientation="vertical" /> #624
  • 🐛 Ensure no scrollbars are shown when scrolling is disabled #624
  • 🐛 Ensure children event handlers don't break #624
  • 🐛 Ensure scroll area updates when children content size changes #624

Slider 0.0.15

  • 🐛 Improve usage within forms #678
  • 🐛 Fix key binding issue in LTR #718

Switch 0.0.14

  • 🔥 onCheckedChange(event) is now onCheckedChange(checked: boolean) #679
  • 🐛 Improve compatibility with native form validation #650
  • 🐛 Improve usage within forms #679
  • 🐛 Improve accessibility when wrapped in native label #679

Tabs 0.0.14

  • 🔥 Rename Tabs.Tab to Tabs.Trigger #652
  • 🔥 Rename Tabs.Panel to Tabs.Content #652

All Primitives

  • ✨ Improve polymorphic types performance #613

Accordion 0.0.14

  • 🐛 Ensure only one click is needed to close a single controlled accordion #594

Checkbox 0.0.14

  • 🔥 Remove readOnly prop #600

Context Menu 0.0.18

  • ✨ Add onOpenChange prop #604

Dialog 0.0.16

  • 🐛 Ensure focus position isn't lost when blurring out window and re-focusing it #589

Dropdown Menu 0.0.18

  • ✨ Take into account non-visible items #618
  • 🔥 Remove anchorRef prop #580
  • 🐛 Prevent page from scrolling when selecting an item with space key #626

Hover Card 0.0.1

  • 🎉 New primitive #595

Popover 0.0.16

  • 🔥 Remove anchorRef prop and replace with optional Anchor part #580

Radio Group 0.0.15

  • ✨ Add optional orientation, dir, loop props #618
  • 🔥 Remove readOnly prop #600

Switch 0.0.12

  • 🔥 Remove readOnly prop #600

Toggle Group 0.0.7

  • ✨ Add optional orientation, dir, loop props #618

Tooltip 0.0.17

  • 🔥 Remove anchorRef prop #580

All Primitives

  • ✨ Improve tree-shaking #577

Context Menu 0.0.17

  • 🐛 Ensure you can open a context menu when one is already open #565

Dropdown Menu 0.0.17

  • 🐛 Fix potential overlap issue #541

Popover 0.0.15

  • 🐛 Ensure Content closes when it has multiple close animations #571

Toggle 0.0.6

  • 🔥 Rename ToggleButton primitive to Toggle #546
  • 🔥 Rename toggled prop to pressed #546
  • 🔥 Rename defaultToggled prop to defaultPressed #546
  • 🔥 Rename onToggledChange prop to onPressedChange #546

Toggle Group 0.0.6

  • 🎉 New primitive #376

Toolbar 0.0.9

Tooltip 0.0.16

Accordion 0.0.7

  • ✨ Add height CSS custom property to panel for easier animation #537

Collapsible 0.0.7

  • ✨ Add height CSS custom property to content for easier animation #537

Tooltip 0.0.9

  • 🐛 Fix type definition conflicts #538

All Primitives

  • ✨ Add support for SSR
  • 🔥 Remove selector prop and data-radix-* atributes #517

Accordion 0.0.6

  • 🔥 Add support for multiple values #527

Note: This is a breaking change because the new type prop is required.

Slider 0.0.6

  • 🐛 Ensure step is rounded correctly #463

Tabs 0.0.6

  • ✨ Add RTL support (dir prop) #497

Tooltip 0.0.7

  • 🐛 Ensure events are composed when using <Trigger as={Slot}> #461

Context Menu 0.0.8

  • ✨ Expose onCloseAutoFocus prop #456

Dropdown Menu 0.0.8

  • ✨ Expose onCloseAutoFocus prop #456

All Primitives

  • 🐛 Fix type autocompletion when using as prop #421

Accordion 0.0.5

  • 🐛 Prevent open/close flickering #431

Dialog 0.0.6

  • 🐛 Ensure focus is returned properly on close #422

Radio Group 0.0.5

  • 🔥 Move name prop from Item to Root #424

Context Menu 0.0.6

  • 🐛 Re–add missing children #414

Dropdown Menu 0.0.6

  • 🐛 Re–add missing children #414

Popover 0.0.5

  • 🐛 Prevent flickering (sliding) issue #415

Slot 0.0.1

  • 🎉 New utility #409

Dialog 0.0.3

  • 🐛 Fix regression when tabbing out would close #403

Dropdown Menu 0.0.3

  • 🐛 Fix broken arrow keys navigation #404

All Primitives

  • ✨ Add selector prop #347

Accordion 0.0.2

  • 🐛 Ensure setting disabled={false} on Root doesn't enable disabled items #400

Dropdown Menu 0.0.2

  • ✨ Add enter key support on trigger #381
  • 🐛 Prevent focus race condition #394

Popover 0.0.2

  • 🐛 Ensure Content repositions on window resize #359
  • 🐛 Ensure last element inside Content triggers blur event #395

All primitives 0.0.1

  • 🎉 Initial release! #338