#Is it possible to only show autocomplete options once a symbol (for example '$') is entered?

8 messages · Page 1 of 1 (latest)

errant fjord
#

I'd like to have autocomplete inputs that allow you to type a string, without any autocomplete options showing up until you enter a symbol, for this example's sake $, which would then show the user a list of possible variables they'd be able to use in their input (for example $size, $title, etc...)

ivory wraith
errant fjord
#

I found a stackoverflow post that has a nice example of it: https://stackoverflow.com/a/56865319 but I don't think this'll be possible with Mantine, or at least the autocomplete component

ivory wraith
errant fjord
#

It's fine, the example linked is using an old version of React and not even using Mantine and it'd be too much effort to post on codesandbox

#

I'll just work on converting it to modern React instead, there's still some Mantine hooks I can use so should be all good

ivory wraith