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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0f6b9de08f82455e69843f5f193eae45c360dc9b74598b53cbf5871ed5f8f50 |
|
MD5 | 16817ff2f2ef3dba5ae470df7886c2ae |
|
BLAKE2b-256 | bbc4e69a799a40b9085b58209b3131681ddfe48bb9c09a81d9bf74d4fbee29a6 |
Close
Hashes for dash_fluentui_components-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ad5153d675cb95fc2d84f6d86e777f4ee5f43de7c9bf61a7a3c4bed988f25fc |
|
MD5 | f08e78b217aadae3e1c84e917f05dac3 |
|
BLAKE2b-256 | 4b3fba0301ac6f8aa6cf7f988b360ae677bca63d5dd52e6accebeefdfdcfc778 |