How would i go about creating an input field for tags?

There’s a bit to unpack here as tagging implementations often vary to support different use cases. For example, do you want that text input to also act like a typeahead with suggestions/autocomplete for existing tags? Do you allow creations of new tags on the fly? Do you want to support removing added tags?

Here’s a relevant article on A Reusable Multi-Tag Selection Component for Phoenix LiveView that demonstrates how to create a client side hook which watches for comma seperated tags. And here’s previous discussion on Building a dynamic select component (in Phoenix LiveView?) - #4 by kartheek and filtering/narrowing down options based on a typeahead input.