New Component: streamlit-tailwind, simplify the process of creating user interfaces

Streamlit Tailwind

PYPI
GitHub

If you find this project useful, please consider leaving a star <3

This project, Streamlit Tailwind, is designed to simplify the process of creating user interfaces. It provides a straightforward way to incorporate Tailwind CSS into your Streamlit
applications. So, without further ado:

Install

Same as always, good ol’ pip (or equivalents)

pip install st_tailwind

Usage

First way:

Use the tailwind wrapper components.

import st_tailwind as tw

tw.selectbox("test", [], classes="w-fit")

Second way:

Wrap the component yourself. You can add the classes keyword argument either in the wrapper method or on the wrapped method.

import streamlit as st

from st_tailwind import tw_wrap

tw_wrap(st.selectbox, classes="w-fit")("test", [])
tw_wrap(st.selectbox)("test", [], classes="w-fit")

If there are any issues, feel free to add to git, and if you can, leave a contribution :slight_smile:

5 Likes

Please share any screenshots or videos how it looks like please for a quick idea of it.

2 Likes

share screenshot