Data Components¶
Data components are essential for displaying information, metrics, and datasets in your Streamlit applications. st_yled enhances these components with professional styling options for tables, metrics, charts, and data visualization.
Available Elements¶
- table - Static table display with enhanced styling
- metric - Display key performance indicators with custom styling
- json - Display JSON data with syntax highlighting and styling
Display Components¶
table¶
Streamlit equivalent: st.table()
Static table display with enhanced styling.
Supported Styling Properties:
background_color- Table background colorcolor- Text colorfont_size- Text size in cellsborder_style- Border style (solid, dashed, dotted)border_color- Border colorborder_width- Border width (px, rem, em, or integer as px)
Metrics and KPIs¶
metric¶
Streamlit equivalent: st.metric()
Display key performance indicators with custom styling.
Supported Styling Properties:
color- Text color for label and valuefont_size- Text size for label and value
Data Visualization¶
json¶
Streamlit equivalent: st.json()
Display JSON data with syntax highlighting and styling.
data = {"name": "John", "age": 30, "city": "New York"}
st_yled.json(data, color="#2c3e50", font_size="14px")
Supported Styling Properties:
color- Text colorfont_size- Text size
Next Steps¶
Continue exploring st_yled components:
- Layout Components - Containers and page structure
- Status Components - Alerts, progress, and feedback
st_yled with ❤️ from EVOBYTE