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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a359e22cf7a4d055d70b3989312a826593b7b2d0c69cbef842cd9083468763b |
|
MD5 | ae5e38497c15b66ade69fa1dff3b8554 |
|
BLAKE2b-256 | 00f1a867d7fc27be76bc927e0b0b62e618c7f02f6ee60f7d8b898d17261ca8a6 |
Close
Hashes for dash_fluentui_components-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e68bd1a3429ee86a92e716383da61a9e4533f07a1307f4daf45e1a89d89f438 |
|
MD5 | 6a0bc214e1e1ffd2c9c8c0388e7e58a5 |
|
BLAKE2b-256 | 189c8d0e95736c38857b6fac55d3a7593d5c087a3b6e2546bc80de5a03bf2d6f |