Comments (3)
@sylvoslee My perspective on this is that Mantine, as Chakra UI and modern component libraries, are closer in React to styled-components ("inline styling" if you prefer) than styling via CSS and classes. This has two big advantages in my opinion when we think about Dash:
-
Because theming is done via React Context, one can very quickly tweak the default theme in a consistent way. For example, if you have branding colors or palettes, you can just pass a dictionary with them and they will be propagated to the entire app (of course, depending on how this is implemented for the Dash components). In Bootstrap, the same thing would require to make the changes in sass and compile it to generate a CSS file.
-
A related point is how styles conflict in Bootstrap and how to fix them. There are some css selections that are borderline impossible to target using an external stylesheet in
dbc
.
TL;DR: To me, Mantime requires way less css (arguably none) compared to BS, which is much more Dash-esque in my view (style via props, not stylesheets).
from dash-mantine-components.
I agree with @jlfsjunior. I rarely concern myself with classnames and inline styles when using dmc.
More on my motivations for using dmc:
- The look and feel of Mantine library. My colleagues use dbc a lot, but I have always found its look and feel a bit outdated. Mantine is refreshingly new.
- A complete suite of components. dbc lack some major components for my use case such as a datepicker, select/multiselect, notifications, etc.
- Thanks to @emilhe, ability to pass components other than children. This is not documented yet, but I'll have it in the docs soon.
- Theming. Mantine supports dark theme natively.
from dash-mantine-components.
What are the advantages of dash mantine components over dash bootstrap components
from dash-mantine-components.
Related Issues (20)
- Can't clear datepickerrange HOT 2
- Min value of RangeSlider is None
- Data Property does not get saved for a multi page setup
- SegmentedControl: Cannot read properties of null (reading 'getBoundingClientRect')
- Theme's primaryColor is ignored
- Menu hidden when overflow HOT 1
- [BUG] `Slider` and `RangeSlider` compressed to a point when `align=center` in a `dmc.Stack`.
- DatePicker Crashes with Scaled Screen Resolution HOT 1
- Carousel support [feature request] HOT 2
- Conda forge support
- [BUG] dmc.HoverCard blocked by other components when placed in a dmc.AccordionMultiple with style={'postion': ‘fixed’} set. HOT 9
- [Request] How can I change the checkedIcon displayed on the left of dmc.Chip?
- Add a focus attribute to the Textarea element
- Checkboxes in TransferList don't work if the values in the list aren't strings
- 'required' prop on select & multiselect not working HOT 1
- Validate url to prevent XSS attacks
- Unable to set width of component to `100%` inside `Tooltip` HOT 4
- Example code for tabs and icons raises TypeError
- [Bug] Issue accessing value of maxDate for DateRangePicker and DatePicker components
- dmc.Notification broken HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dash-mantine-components.