streamlit-react-components 1.0.1__py3-none-any.whl → 1.0.2__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.
@@ -15,6 +15,7 @@ _component = components.declare_component(
15
15
  def checkbox_group(
16
16
  items: List[Dict[str, Any]],
17
17
  label: str = "",
18
+ layout: str = "vertical",
18
19
  style: Optional[Dict[str, Any]] = None,
19
20
  class_name: str = "",
20
21
  key: Optional[str] = None,
@@ -28,6 +29,7 @@ def checkbox_group(
28
29
  - label: Display label
29
30
  - checked: Initial checked state (optional, default False)
30
31
  label: Optional group label
32
+ layout: Layout direction - "vertical" (default) or "horizontal"
31
33
  style: Inline CSS styles as a dictionary
32
34
  class_name: Tailwind CSS classes
33
35
  key: Unique key for the component
@@ -36,6 +38,7 @@ def checkbox_group(
36
38
  List of checked item IDs
37
39
 
38
40
  Example:
41
+ # Vertical layout (default)
39
42
  selected = checkbox_group(
40
43
  label="Parameters",
41
44
  items=[
@@ -45,6 +48,13 @@ def checkbox_group(
45
48
  ]
46
49
  )
47
50
  # Returns: ["vphp", "lot_co"] if those are checked
51
+
52
+ # Horizontal layout
53
+ selected = checkbox_group(
54
+ label="Options",
55
+ items=[...],
56
+ layout="horizontal"
57
+ )
48
58
  """
49
59
  # Get default checked items
50
60
  default_checked = [item["id"] for item in items if item.get("checked", False)]
@@ -53,6 +63,7 @@ def checkbox_group(
53
63
  component="checkbox_group",
54
64
  label=label,
55
65
  items=items,
66
+ layout=layout,
56
67
  style=style,
57
68
  className=class_name,
58
69
  key=key,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: streamlit-react-components
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: Reusable React-based Streamlit components with Tailwind CSS styling
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://github.com/your-org/streamlit-react-components
@@ -1,7 +1,7 @@
1
1
  streamlit_react_components/__init__.py,sha256=-m5OJx0vsfzD6k2m_2X8eMQXi9pgkreAuDZJoVWbdJ0,673
2
2
  streamlit_react_components/_frontend/index.css,sha256=vW-yXHEFGLJUbWgkRewomPA8R3Um6h8kADSJqzEHxIc,26376
3
3
  streamlit_react_components/_frontend/index.html,sha256=CjBEtVYlgT_q06BE16EHFrUrJZ6z0MCprrTg7qgAWzw,381
4
- streamlit_react_components/_frontend/index.js,sha256=slhaVPHpVSgP6b7yYt43p5_hFEtNAEl2_DhrUnH6stM,5215495
4
+ streamlit_react_components/_frontend/index.js,sha256=PxuSp_m4S-N4YTOJj3kEIWHCBcW_L3PPmJN44HHvzOo,5215566
5
5
  streamlit_react_components/common/__init__.py,sha256=xUKaw_X2B2xd6AqW8oLzHupGp-TX3Fij0FjhMNwd-vs,550
6
6
  streamlit_react_components/common/button_group.py,sha256=g38gpR62dQ8KLd3JyANvGonT6tf-tyooIjC6t3O4iH0,2225
7
7
  streamlit_react_components/common/chart_legend.py,sha256=So703OO-sI6SWrSVGKH0OTiI-smr4luqgBtXQ9GwIlI,1377
@@ -13,10 +13,10 @@ streamlit_react_components/common/section_header.py,sha256=2sVLWHjHx2WdhbVVLBgs5
13
13
  streamlit_react_components/common/stat_card.py,sha256=PimCX6Dd18DyfJn6tk0YmrA1zKvAiqeKXdHAKXhxiRQ,1674
14
14
  streamlit_react_components/common/step_indicator.py,sha256=araovSL_c5h66PawZBf5IlQbVoxXwE9kD0H10ZopVoU,1370
15
15
  streamlit_react_components/form/__init__.py,sha256=XP9oBEHSwLTNqu88sYm0F_n828yzPStDJl3N62HxVvc,222
16
- streamlit_react_components/form/checkbox_group.py,sha256=NLNJW1Ql60PnFj0FdH6Q0gUAGx2NOVNI9geIG-NG8G4,1779
16
+ streamlit_react_components/form/checkbox_group.py,sha256=LbwfyIRKjTnWOB-a4OL2-vJXAJ9QpXhbrbdUz5bBdW4,2100
17
17
  streamlit_react_components/form/form_select.py,sha256=KILKVUO-Elb0nqbTEImxyoGQQrnZ_jft30iJSbY5ksk,1946
18
18
  streamlit_react_components/form/form_slider.py,sha256=4w9h-d-9yAHg3ZqUHCZGzsfUG3lP5OTwVrDo5sZAnfQ,2032
19
- streamlit_react_components-1.0.1.dist-info/METADATA,sha256=VYZrioH2thbXYa6VWW1A2DTDGqmsddFeYUJeQZXlRuU,21677
20
- streamlit_react_components-1.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
- streamlit_react_components-1.0.1.dist-info/top_level.txt,sha256=3JFrl15-Uewx3BFMSzqrBufF9GmTS1LDKfShmg0R9VE,27
22
- streamlit_react_components-1.0.1.dist-info/RECORD,,
19
+ streamlit_react_components-1.0.2.dist-info/METADATA,sha256=lNS5Fsxaii6LY3RlmkRGj-2W-fqQGBUXTpJnRgKY1go,21677
20
+ streamlit_react_components-1.0.2.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
21
+ streamlit_react_components-1.0.2.dist-info/top_level.txt,sha256=3JFrl15-Uewx3BFMSzqrBufF9GmTS1LDKfShmg0R9VE,27
22
+ streamlit_react_components-1.0.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5