Open
Description
Feature request
Summary
Select.Trigger.State
should have value in its state like Select.Value.State
.
<Select.Trigger className={({ disabled, valid, value }) => ''} />
Examples in other libraries
N/A
Motivation
I wanted to style Select.Trigger
text in 2 mutually exclusive situation, disabled
and value === null
. Can't apply the style on Select.Value
because it would not have disabled + valid states like Select.Trigger
does. I do believe, though, that the set of states exposed by both Trigger and Value should be the same and consistent (similar to Field.Label
, Field.Description
, Field.Error
having the same state as Field.Root
)
FYI, I am using a later version of Base UI which has Select.Value
API revamped (https://pkg.pr.new/@base-ui-components/react@2192)