Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dash_fluentui_components-0.0.6.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

dash_fluentui_components-0.0.6-py3-none-any.whl (2.7 MB view details)

Uploaded Python 3

File details

Details for the file dash_fluentui_components-0.0.6.tar.gz.

File metadata

File hashes

Hashes for dash_fluentui_components-0.0.6.tar.gz
Algorithm Hash digest
SHA256 ebb96b58639c3b0b73d89cd6589ef22d3b060626a73c8ea7b363cf5eae1dadd2
MD5 2042a7be42f2b0794f2677f0a3ae03a6
BLAKE2b-256 fb2b9d3d4764ba12d8993c8f4f8bab9628d6b164d8b9c69db78e6dd0fac533af

See more details on using hashes here.

File details

Details for the file dash_fluentui_components-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for dash_fluentui_components-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 154a64c26a8fe2513517fe407a908386019a3ff2686b3b150e18ef51d47090a8
MD5 84f8ddbc7f177cbc14260ca35c8c1417
BLAKE2b-256 de8501fff5b5857b71016d413bc308ab77838066b87039df4f83a36946d83d90

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page