Skip to main content

A streamlit component that allows the addition of custom HTML with Tailwind classes

Project description

streamlit-tailwind

A streamlit component that allows the addition of custom HTML with Tailwind classes

Installation instructions

pip install streamlit-tailwind

Usage instructions

import streamlit as st

from streamlit_tailwind import st_tw

value = st_tw(
        text="""
            <div class="bg-white p-4 h-48 rounded-lg"></div>
        """,
        height=192 # 4 x specified height in tailwind
    )

    st.write(value)

st.write(value)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit-tailwind-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_tailwind-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file streamlit-tailwind-0.1.0.tar.gz.

File metadata

  • Download URL: streamlit-tailwind-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for streamlit-tailwind-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0622166ed8cdf29d3cceab667d5ccef7f0e155a5723f7c7fe99f2501173387cd
MD5 c00dd42e710e6c73b0e6e76eec7a47fe
BLAKE2b-256 a1be36cdafc6aadfb3bdaea0f1a1580bbf4478fd810d56e4df4d13338c9e2f30

See more details on using hashes here.

File details

Details for the file streamlit_tailwind-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_tailwind-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6cb8738cce9a4ee8e8e6c68667b558d863b6f5fd685bdb42b81a4cdd98735af5
MD5 04832edad7b47a8b32f54b8d8f28300a
BLAKE2b-256 b660b0ed434ae6c0db4c0afd83cb59391ba13886d8df4f04905c637050ca5d94

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page