pacocoursey / cmdk

Fast, unstyled command menu React component.
https://cmdk.paco.me
MIT License
9.04k stars 259 forks source link

Why can not use type=search for Command.Input #175

Open zecka opened 10 months ago

zecka commented 10 months ago

I try to implement a cross icon into the Command.Input (to reset the input content wihtout leaving focus). Something like:

image

But type attribute seems to be Omit from Command.Input component (check /src/index.tsx#L51)

Is there any particular reason why the type is omitted from InputProps?

What do you suggest to implement the cross icon ?

edit: maybe this topic should be moved to discussion, but don't know how to move it :(

mardausdennis commented 7 months ago

This feature would be useful. I was wondering if there have been any updates or further discussions on this topic?

TheMikeyRoss commented 3 months ago

@pacocoursey

steve-marmalade commented 2 months ago

Came here looking for the same. I would like to customize the icon being displayed on smartphone keyboards by specifying type="search"