it looks like the SegmentedControl.Item component doesn't support the disabled state out-of-the-box.
I can trick it by using the aria-disabled attribute, and changing the look and feel via CSS, but the Item is still clickable.
If I use pointer-events: none; it works, but I cannot customize the cursor.
Since the rendered component is a button, I wonder why it has been decided to remove disabled.
Hi,
it looks like the
SegmentedControl.Item
component doesn't support thedisabled
state out-of-the-box. I can trick it by using thearia-disabled
attribute, and changing the look and feel via CSS, but theItem
is still clickable.If I use
pointer-events: none;
it works, but I cannot customize the cursor.Since the rendered component is a button, I wonder why it has been decided to remove
disabled
.Do you know any good workaround?
Thanks, Luca