FluentUI components for Plotly Dash.
Project description
dash-fluentui-components
A component library for Plotly's Dash based on the fluentui react components.
Installation
poetry add dash-fluentui-components
or via pip
pip install dash-fluentui-components
Usage
from dash import Dash, Input, Output, callback, callback_context
from dash.exceptions import PreventUpdate
import dash_fluentui_components as dfc
app = Dash(__name__)
open_dialog = dfc.Button("OpenDialog", id="open-id")
close_dialog = dfc.Button("CloseDialog", id="close-id")
dialog = dfc.Dialog(
"Content",
title="A dialog component",
trigger=open_dialog,
trigger_action=close_dialog,
)
page1 = dfc.Page(dfc.Button("Button 1"), page_key="page-1", controls=dialog)
page2 = dfc.Page(dfc.Button("Button 2"), page_key="page-2", controls=dfc.Button("Control 2"))
app.layout = dfc.FluentProvider(theme="dark", children=dfc.PagesWithSidebar([page1, page2], selected_key="page-1"))
if __name__ == "__main__":
app.run_server(debug=True)
TODO
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
File details
Details for the file dash_fluentui_components-0.0.9.tar.gz
.
File metadata
- Download URL: dash_fluentui_components-0.0.9.tar.gz
- Upload date:
- Size: 2.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3357bd23e1eb549f047b0e93ddbe5f86f3367b7fd2f1117284760e51de26c03a |
|
MD5 | e2623a5afd7c7501b540ec0947a8c74d |
|
BLAKE2b-256 | f4da294f01b125dbb7497e58021071061d42017f8f15273ba4bf7fbb9a47b677 |
File details
Details for the file dash_fluentui_components-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: dash_fluentui_components-0.0.9-py3-none-any.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0648b7d3b5a836d0c9011f203b6a4b15fc63205521b158a2bfa4a6040a5e7567 |
|
MD5 | 43a253bf17333184ca89fa22b11f88aa |
|
BLAKE2b-256 | 9930d375e3221ee26d7c2af0630be2ab4eb60a1ac82b9d2fe4d2ff763b088d40 |