New Component: Streamlit-tags a new way to do add tags and enter keywords

I have created a custom component for Streamlit which is a custom tag function and keywords functions in Streamlit it returns a list and the list can be used as usual.

pip install streamlit-tags

import streamlit as st
from streamlit_tags import st_tags

keywords = st_tags(‘Enter Keyword:’, ‘Press enter to add more’, [‘One’, ‘Two’, ‘Three’])


More details can be found here: GitHub - gagan3012/streamlit-tags: streamlit-tags
Please star the repo if you liked it and let’s also connect on Linkedin:

Example Usage:
Here I generate sentences using Keywords using streamlit tags.


Cool idea!


Love it! :clap:

As a side note, the app
is crashing. Not sure if this is expected.


Thank you so much! There were some issues in that demo. I have updated it
Please try this out:

Hello @gagan3012, sounds awesome!

Could you add it to the Components Community Tracker so we don’t lose track of it?

Have a nice day,

Hello, @andfanilo
I have added it to the components tracker can you please approve if it is okay?
Also Now I have added support for the sidebar too:

1 Like

Perfect :slight_smile: I have nothing to approve since it’s a public free-to-edit Wiki, makes it easier to all collaborate on!

1 Like

Great app!

Btw, I’ve this message when trying to install it.

Is it expected?


Hello @Charly_Wargnier ,
Thank you so much
Please upgrade to streamlit_tags==1.0.6 using

pip install --upgrade streamlit_tags

Currently, it does not support custom theming but I am working on adding support for it.

1 Like

No worries!

Just curious, can you resize the size of the tags with your component?

See my ticket here regarding the native solution


Hello @Charly_Wargnier
Yes, streamlit-tags does support resizing according to text size. If we use the streamlit with wide mode we can enlarge the text box too.

Try it out here:

1 Like

Brilliant! I’ll try this then! :slight_smile:


1 Like

New Update to Streamlit-tags now it supports text suggestions. We also have conda support now too. Check out:… for more details.

Original post:


1 Like