Skip to content

[select] Select.Trigger.State should have value #2196

Open
@brianle1301

Description

@brianle1301

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)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions