No project description provided
Project description
Dash Mantine Components is an extensive (55+) Dash components library based on Mantine React Components Library. It makes it easier to create good quality dashboards with very well designed components out of the box.
Table of contents
Installation
pip install dash-mantine-components
Quickstart
import custom_mantine_datepicker as dmc
from dash import Dash, Input, Output
app = Dash(__name__)
app.layout = html.Div(
[
dmc.DatePicker(id="datepicker", format="dddd, MMMM D, YYYY"),
dmc.Text(id="text"),
dmc.Button("Click Me!")
]
)
@app.callback(Output("text", "children"), Input("datepicker", "date"))
def datepicker(date):
return date
if __name__ == "__main__":
app.run_server(debug=True)
Contributing
-
Join our Discord community.
-
Install virtual environment:
python -m venv venv source venv/bin/activate pip install -r requirements.txt
-
Install npm dependencies
npm install
-
Add your new component in
src/lib/components
. Make sure to include it in thesrc/lib/index.js
as well. -
Ensure that component props are sorted in ascending order. Refer to existing components.
-
Add a line in the CHANGELOG.md under one of these: Added, Changed, Deprecated, Removed, Fixed.
-
Raise a PR, including an example to reproduce the changes contributed by the PR.
TODO
- Add more components from Mantine library and enhance already added ones.
- Add contributing guide.
- Add testing.
- Enhance docs.
- Add lazy loading to the components.
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
Hashes for custom_mantine_datepicker-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1898bc47c1bb23e371e0d897772719d64fb2c8c071a61c094552ce17ae24235 |
|
MD5 | 64fe488ad88beb40413ff11bf28d232d |
|
BLAKE2b-256 | 327e2cd022785b7ae4938954ba7e92ba5c25dac946d658566591bdb37564bc72 |
Hashes for custom_mantine_datepicker-0.0.1-py3.8.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9368a341f360adb0bd2081e660ea49dbfb0628c53fa2bb1fccb3eee610f35c6f |
|
MD5 | 9bd3799d0eaa0e5d4a651b172ccd8626 |
|
BLAKE2b-256 | e5fb5f5c9962b3c0518eef2de169d7fb582e4b2cace1b61f7c5cabdf397a0a32 |