Hi everyone, I want to share with you the porting of a component library I have been working on recently.
The library is Blueprint by Palantir, a set of components suited for building complex data-dense interfaces for desktop applications.
The library includes some nice components I haven’t seen in other porting, like the Tree component and the ContextMenu component.
Check out the official Blueprint documentation to have an idea of the set of components, or the documentation replica I built using Dash, available here: dash-blueprint-components. Following the idea behind Blueprint, the documention is optimized for desktop instead of mobile browsers.
This is my first open source project and the first time working with React. Until now I only used the library to create the documentation, hoping there are not too many bugs! If someone is interested in testing the library, I’m willing to mantain it and improve the code.
The library can be installed in the usual way:
pip install dash-blueprint-components
and imported as always:
from dash import Dash, html, callback, Input, Output
import dash_blueprint_components as dbpc
app = Dash(
__name__,
)
app.layout = html.Div(
children=[
dbpc.Button(
id='button',
text='Click me!'
),
html.Div(
id='output'
)
]
)
@callback(
Output('output', 'children'),
Input('button', 'n_clicks')
)
def click(n_clicks):
if n_clicks is not None:
return n_clicks
if __name__ == "__main__":
app.run_server()