mary icon indicating copy to clipboard operation
mary copied to clipboard

add an `optgroup` to the select component

Open s-kitade opened this issue 9 months ago • 2 comments

https://developer.mozilla.org/ja/docs/Web/HTML/Element/optgroup

Is it possible to add an optgroup to the select component?

s-kitade avatar Apr 30 '24 02:04 s-kitade

I am not sure if we should create a new component or adapt the existing one.

robsontenorio avatar May 03 '24 16:05 robsontenorio

With the latest web updates more fun stuff is now possible with select. For example < img> or < hr> tags inside option.

see https://youtu.be/-6LgEjEyzE?t=2195 https://youtu.be/-6LgEjEyzE?t=2010

Maybe this helps to decide how to implement optgroup (and make it future proof)

theChaosCoder avatar May 17 '24 21:05 theChaosCoder

Released , thanks to @itsmenewbie03

https://mary-ui.com/docs/components/select#group

robsontenorio avatar May 27 '24 14:05 robsontenorio