
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
sd-material-ui
Advanced tools
StratoDem Analytics Dash implementation of material-ui components.
Dash wrappers around the excellent material-ui
package
$ pip install sd-material-ui
import dash
import dash_html_components as html
import sd_material_ui
my_app = dash.Dash()
# A FlatButton on Paper
my_app.layout = sd_material_ui.Paper([
html.Div(children=[
html.P(id='output', children=['n_clicks value: . n_clicks_previous value: '])
]),
sd_material_ui.FlatButton(id='input', label='Click me', backgroundColor='orange'),
])
# Callback for FlatButton
@app.callback(
dash.dependencies.Output('output', 'children'),
[dash.dependencies.Input('input', 'n_clicks')],
[dash.dependencies.State('input', 'n_clicks_previous')])
def display_clicks_flat(n_clicks_flat: int, n_clicks_flat_prev: int):
if n_clicks_flat:
return ['n_clicks value: {}. n_clicks_prev value: {}'.format(n_clicks_flat,
n_clicks_flat_prev)]
else:
return ['n_clicks value: ']
if __name__ == '__main__':
my_app.run_server()
AutoComplete
BottomNavigation
Checkbox
CircularProgress
Dialog
Divider
Drawer
DropDownMenu
FlatButton
FontIcon
IconButton
Paper
RaisedButton
Snackbar
Subheader
Toggle
Go to this link to learn about Dash.
See the dash-components-archetype repo for more information.
To set up the development environment:
$ npm install
# Run webpack to create the Dash React bundle
$ npm run build-dist
# Set up a virtualenv
$ virtualenv venv -p python3
$ source venv/bin/activate
# Install the local Python Dash package
$ npm run install-local
Run usage.py
in the virtual environment
$ source venv/bin/activate
$ python usage.py
FAQs
material-ui components for Dash
We found that sd-material-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.