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
Close
Hashes for dash_fluentui_components-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 331cd438a0af8f46fdf5e62fa240a6f8718c56d25f3e88b30f8c06169e0febbd |
|
MD5 | 0ddfbe747d0a0db54c5169ef33bb3d3a |
|
BLAKE2b-256 | 0e584de1434c285d58349453e097b4594ef40ff786dabe5926a8baa0093439ce |
Close
Hashes for dash_fluentui_components-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d6a77ad3e47c6b9e453a395701585db463edb26627ba0c8da945c3c9e1f2ef9 |
|
MD5 | 018c3a612f7b4a12e6b87eab5992ee9b |
|
BLAKE2b-256 | c82270addc0a266867ed8e23807c6b32daeed3f361c2137c0d67b3242f069deb |