Skip to main content

ToggleButtonGroup

  • Changelog

ToggleButtonGroup lets users toggle between a set of related options, typically with one preselected. It's best for switching between views or a compact group of options with immediate effect.

Package @dynatrace/strato-components, latest version 3.18.0. Below are the changes to ToggleButtonGroup. See Components changelog for all changes to the package.

3.18.0 Released Nov 12, 2026​

Updates​

Forms​

  • Fixed form fields inside a Form that showed a control's error message twice, for example a min or max error. (APPDEV-19307)
  • Disabled and read-only fields now use the neutral disabled background in visual refresh mode, and read-only error fields retain their surface background with an emphasized critical outline. Error fields also now use the surface background instead of a critical background in visual refresh mode. (APPDEV-19745)
  • Placeholder text on interactive inputs now renders at reduced opacity in visual refresh mode to improve differentiation between placeholder text and user-entered content. (APPDEV-19745)
  • You can now pass null as value or defaultValue to TextInput, PasswordInput, SearchInput, TextArea, Checkbox, Switch, RadioGroup, ToggleButtonGroup, and Select, so the control starts empty and keeps its controlled or uncontrolled mode.
  • onValidityChange now behaves the same for every form control: it reports errors once they are shown to the user, emits only when the set of errors changes, and reports a pending state once while an asynchronous validation runs. (APPDEV-19740)

3.17.0 Released Oct 29, 2026​

Updates​

  • ToggleButtonGroup.Item now sets data-dt-children-name by default instead of data-dt-name, so clicks on its content are behaviorally tracked. (APPDEV-19827)

3.10.0 Released Jul 28, 2026​

Updates​

Forms​

  • Added onFocus and onBlur props to TextInput, TextArea, NumberInputV2, PasswordInput, SearchInput, Checkbox, Radio, RadioGroup, Switch, ToggleButtonGroup. TextInput, NumberInputV2, PasswordInput, SearchInput, RadioGroup, and ToggleButtonGroup only fire the blur when focus leaves the entire component, not on internal transitions (e.g. tabbing from the input to a suffix button).

3.4.0 Released May 5, 2026​

Updates​

General​

  • Behavior tracking attributes are now supported in all button components, including Button, IntentButton, NotifyButton, and RunQueryButton. (APPDEV-16876)
  • The text and icon color tokens for the success on accent button are now correct. (APPDEV-17388)
  • Behavior tracking attributes are now supported in all form components, including Calendar, Checkbox, DateTimePicker, DateTimeRangePicker, FieldSet, FormField, Label, NumberInput, NumberInputV2, PasswordInput, Radio, SearchInput, Select, Switch, TextArea, TextInput, and ToggleButtonGroup. (APPDEV-16882)
  • Behavior tracking attributes are now supported in FilterBar, FilterField, SegmentSelector, and TimeframeSelector. FilterField.Suggestions and TimeframeSelector.Presets now also support behavior tracking attributes. (APPDEV-16881)
  • Added feature flag and css overrides for design tokens for visual refresh. (APPDEV-17223)

Forms​

  • Improved read-only state for form components: TextInput, TextArea, PasswordInput, NumberInput, DateTimePicker, DateTimeRangePicker, Select, Switch, Checkbox, RadioGroup and ToggleButtonGroup. (APPDEV-16539, APPDEV-16540, APPDEV-16542, APPDEV-16543, APPDEV-16544, APPDEV-16545, APPDEV-16546, APPDEV-16547, APPDEV-16548)
  • Default placeholder texts are now shown when no placeholder is explicitly provided. (APPDEV-17048)

3.3.1 Released Apr 28, 2026​

Updates​

  • User-provided data-dt-name attribute on ToggleButtonGroup.Item is no longer overridden by the default value. (APPDEV-17287)

3.3.0 Released Apr 21, 2026​

Updates​

  • Removed redundant aria-checked attribute from the radio input to resolve an accessibility conflict (WCAG 4.1.2). (APPDEV-16861)
  • Added data-dt-name attribute to the toggle item.

3.1.0 Released Mar 19, 2026​

Updates​

  • Styles for aria-disabled are now correctly applied. (APPDEV-16682)

3.0.0 Released Mar 10, 2026​

Updates​

  • Fixed a react warning about missing keys on each child.
Still have questions?
Find answers in the Dynatrace Community