nextui icon indicating copy to clipboard operation
nextui copied to clipboard

[Feature Request] Autocomplete should expose label slot

Open russx2 opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe.

Form field components that support label and labelPlacement attributes (such as Input, Slider, Select, etc) expose a label slot to allow customisation of the label. The Autocomplete component does not support this slot meaning we are unable to customise the label styling.

Describe the solution you'd like

I'd expect the label slot to be exposed.

Describe alternatives you've considered

I don't believe there's any other way of styling the label without some global-level CSS hacks.

Screenshots or Videos

No response

russx2 avatar Mar 22 '24 16:03 russx2

Closing - since label belongs to input, you can actually customise the label by passing inputProps.

inputProps={{
  classNames: {
    label: "foo bar baz",
  },
}}

wingkwong avatar Apr 14 '24 14:04 wingkwong