kobalte icon indicating copy to clipboard operation
kobalte copied to clipboard

getValueLabel should return JSX.Element

Open masylum opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Otherwise, we need to type it "as string".

Describe the solution you'd like I want to show "$X/month" in a nice way, so I need JSX.

Describe alternatives you've considered I'm currently working around it with "as string"

Additional context nop

masylum avatar Jul 15 '24 20:07 masylum

getValueLabel should always be a string in a human readable format, it is used for accessibility. Will add a separate option for the display label.

jer3m01 avatar Sep 02 '24 04:09 jer3m01