Genie Discord forum
![Author Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
how to add icon in text field ?
![Author Avatar](https://cdn.discordapp.com/avatars/743412727464067154/bc30abeb49653e9978c0f7c90f4486a8.png?size=512)
Can you be a little more specific? Perhaps share an example of what you want to do?
![Author Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
How would this code look with the components in StippleUI?
![Author Avatar](https://cdn.discordapp.com/avatars/743412727464067154/bc30abeb49653e9978c0f7c90f4486a8.png?size=512)
You can use the parse_vue_html
function to go from HTML to Julia code
julia> print(parse_vue_html("""<q-input filled v-model="text" :dense="dense">
<template v-slot:prepend>
<q-icon name="event" />
</template>
</q-input>"""))
textfield("", :text, filled = "", dense = :dense,
template(var"v-slot:prepend" = "",
icon("event", )
)
)
![Author Avatar](https://cdn.discordapp.com/avatars/743412727464067154/bc30abeb49653e9978c0f7c90f4486a8.png?size=512)
note that you'd need to define two reactive vars for text
and dense