Skip to content

[combobox] Combobox.Value should render a span #4864

@mirka

Description

@mirka

Feature request

Summary

Select.Value and Combobox.Value both take a placeholder prop, but only Select.Value gets a data-placeholder attribute because it renders a span. Combobox.Value cannot have that attribute because it doesn't render an HTML element.

It would be convenient if both components rendered a span and received the same data-placeholder attribute.

Motivation

Selects and comboboxes are often styled similarly, and this is a place where it's good to share styles between the two. Currently, we have to look at the data-placeholder prop on the Trigger to style the placeholder Value, if we want the same style to work in both Select and Combobox.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: comboboxChanges related to the combobox component.type: expected behaviorThe current behavior is already the one expected.
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions