A custom Gradio component for product planning with a 4-column drag-and-drop board
Project description
product_plan_canvas
A custom Gradio component for product planning with a 4-column drag-and-drop board
Installation
pip install product_plan_canvas
Usage
import gradio as gr
from product_plan_canvas import ProductPlanCanvas
def main():
initial_data = [
{"id": 0, "content": "Sample idea 1", "column": "idea"},
{"id": 1, "content": "Sample feature 1", "column": "features"},
{"id": 2, "content": "Sample timeline 1", "column": "timeline"},
{"id": 3, "content": "Sample story 1", "column": "stories"}
]
with gr.Blocks() as demo:
gr.Markdown("# Product Plan Canvas Demo")
canvas = ProductPlanCanvas(
value=initial_data,
label="Product Planning Board",
show_label=True,
interactive=True
)
state_display = gr.JSON(label="Current State")
canvas.state.change(
fn=lambda x: x,
inputs=[canvas.state],
outputs=[state_display]
)
demo.launch()
if __name__ == "__main__":
main()
ProductPlanCanvas
Initialization
| name | type | default | description |
|---|---|---|---|
value |
typing.Optional[typing.List[typing.Dict[str, typing.Any]]][
typing.List[typing.Dict[str, typing.Any]][
typing.Dict[str, typing.Any][str, typing.Any]
],
None,
]
|
None |
Initial state of the board |
label |
typing.Optional[str][str, None]
|
None |
Label for the component |
show_label |
bool
|
True |
Whether to show the label |
interactive |
bool
|
True |
Whether the component is interactive |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file product_plan_canvas-0.1.0.tar.gz.
File metadata
- Download URL: product_plan_canvas-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d3cae5edc78fe8f7c1a4df85aaff9394bdd479e96d28b10b376e43e81f65cb0
|
|
| MD5 |
82f1425c91f1bd695420a7c3d98eb22e
|
|
| BLAKE2b-256 |
aa9c63309eb1bd1d4b77116814cf453234019299f6201f47441d0d4e074fd9ff
|
File details
Details for the file product_plan_canvas-0.1.0-py3-none-any.whl.
File metadata
- Download URL: product_plan_canvas-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
759764236a3d2c7c1233921d8dce5889035a71b0ae8b7f553026e4741b9ccfe2
|
|
| MD5 |
b553f7508e0a7da7235a27e1df0c3b25
|
|
| BLAKE2b-256 |
84104ba51e0ca2d2fb55392ff5e4cf848bc3764cebe53b8025eb16baa6d6fe98
|