ToggleGroupControlOptionBase 是一个实验性的表单组件,用作 ToggleGroupControl 子组件的内部通用基础组件。它支持通过 props 配置子元素、值和工具提示显示。
ToggleGroupControlOptionBase is a form component and is meant to be used as an internal, generic component for any children of ToggleGroupControl.
children: ReactNodeThe children elements.
value: string | numberThe value of the ToggleGroupControlOptionBase.
showTooltip: booleanWhether to show a tooltip when hovering over the option. The tooltip will only show if a label for it is provided using the aria-label prop.