streamlit-toggle-diy 1.1.3__py3-none-any.whl → 1.1.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {streamlit_toggle_diy-1.1.3.dist-info → streamlit_toggle_diy-1.1.4.dist-info}/METADATA +4 -8
- {streamlit_toggle_diy-1.1.3.dist-info → streamlit_toggle_diy-1.1.4.dist-info}/RECORD +5 -5
- {streamlit_toggle_diy-1.1.3.dist-info → streamlit_toggle_diy-1.1.4.dist-info}/LICENSE +0 -0
- {streamlit_toggle_diy-1.1.3.dist-info → streamlit_toggle_diy-1.1.4.dist-info}/WHEEL +0 -0
- {streamlit_toggle_diy-1.1.3.dist-info → streamlit_toggle_diy-1.1.4.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: streamlit_toggle_diy
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.4
|
4
4
|
Summary: A customized Streamlit toggle switch component with customizable labels, colors, and border radius
|
5
5
|
Home-page: https://github.com/flowing-water1/streamlit-toggle-switch-diy
|
6
6
|
Author: Flow Water
|
@@ -10,12 +10,10 @@ Description-Content-Type: text/markdown
|
|
10
10
|
License-File: LICENSE
|
11
11
|
Requires-Dist: streamlit>=0.63
|
12
12
|
|
13
|
-
#
|
13
|
+
# streamlit-toggle-diy
|
14
14
|
|
15
15
|
Creates a toggle switch with color and placement customizations, and you can change the label's color, radius, font size, and more.
|
16
16
|
|
17
|
-
|
18
|
-
|
19
17
|
## Function
|
20
18
|
|
21
19
|
- Customize label background color
|
@@ -28,14 +26,14 @@ Creates a toggle switch with color and placement customizations, and you can cha
|
|
28
26
|
## Installation
|
29
27
|
|
30
28
|
```shell
|
31
|
-
pip install streamlit-toggle-
|
29
|
+
pip install streamlit-toggle-diy
|
32
30
|
```
|
33
31
|
|
34
32
|
## Usage
|
35
33
|
|
36
34
|
```python
|
37
35
|
import streamlit as st
|
38
|
-
import
|
36
|
+
import streamlit-toggle-diy as tog
|
39
37
|
|
40
38
|
tog.st_toggle_switch(
|
41
39
|
key=None,
|
@@ -54,7 +52,6 @@ tog.st_toggle_switch(
|
|
54
52
|
)
|
55
53
|
```
|
56
54
|
|
57
|
-
|
58
55
|
## Parameters
|
59
56
|
|
60
57
|
|
@@ -85,7 +82,6 @@ tog.st_toggle_switch(
|
|
85
82
|
> * If both `background_color_near_button_start` and `background_color_near_button_end` are provided, a gradient behind the switch is created.
|
86
83
|
> * If you only provide one color, it will be used as a solid background.
|
87
84
|
> * `label_start_color` and `label_end_color` control the text color of labels, while `label_bg_color_start` and `label_bg_color_end` control the background of those labels.
|
88
|
-
>
|
89
85
|
|
90
86
|
## Operation
|
91
87
|
|
@@ -28,8 +28,8 @@ streamlit_toggle_diy/frontend/src/index.tsx,sha256=X_k1aZGH_KKCQnhoxvBtBG_r09zqa
|
|
28
28
|
streamlit_toggle_diy/frontend/src/react-app-env.d.ts,sha256=V-2kxMBKHcpFxihXMmiCzpzJSMS1KXPA48O35MP6OZA,40
|
29
29
|
streamlit_toggle_diy/frontend/src/streamlit_toggle.tsx,sha256=4wVPf_La5KBGtZwwcSodKv0vyOHsyHYP6DLvp0oIiDs,5115
|
30
30
|
streamlit_toggle_diy/frontend/src/style.css,sha256=Dv1altORNXSycHo4hYEtekgCYJQNNJ_FmqvkZCwmwpA,142
|
31
|
-
streamlit_toggle_diy-1.1.
|
32
|
-
streamlit_toggle_diy-1.1.
|
33
|
-
streamlit_toggle_diy-1.1.
|
34
|
-
streamlit_toggle_diy-1.1.
|
35
|
-
streamlit_toggle_diy-1.1.
|
31
|
+
streamlit_toggle_diy-1.1.4.dist-info/LICENSE,sha256=NjPmumOMFSp_Jkk0GC961Ie0-R4mbAV6POCovLzRQJk,1061
|
32
|
+
streamlit_toggle_diy-1.1.4.dist-info/METADATA,sha256=H9D0X6riVzu8Dg42WWqJIa6I4rn1dNlklRrAXOPYzS8,6888
|
33
|
+
streamlit_toggle_diy-1.1.4.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
34
|
+
streamlit_toggle_diy-1.1.4.dist-info/top_level.txt,sha256=nFI-mEsztmjsHXlvV0MpfzhT-2ovmY270y2Ulm--D3I,21
|
35
|
+
streamlit_toggle_diy-1.1.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|