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.10.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for dash_fluentui_components-0.0.10.tar.gz
Algorithm Hash digest
SHA256 2e8fa135cef2a9d2e8ae774f4ef364a78f285c41117ee8aa422f67e507513a7c
MD5 0f4b67e1dc06ab81b682e936f18b0a5d
BLAKE2b-256 a9049becc9e192522ffe0f1d953ee43e48a7522ebd5abdfaf158fa54926e9b9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dash_fluentui_components-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 4b9abbe61234a3fa818cce30ad79d5e6f68855d63b4a0459f4dd1188c68828b0
MD5 c8d25861b7eec5ceaabc6b6c73cb2080
BLAKE2b-256 77f5da1e46a94653a39e8d00792ede57e742d6c37695297ca9c8984386bccece

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