[RFC] Switch design system in X-components #28175
siriwatknp
announced in
Early feedback
Replies: 1 comment
-
The data grid is an interesting case to consider, its structure feels really close to the date pickers. 4. Same as in the coreHandles the X components almost the same way as the Core components. We could:
import { DataGrid, GridToolbar } from '@mui/x-data-grid/material';
import { DataGrid, GridToolbar } from '@mui/x-data-grid/joy';
import { DataGridBase, GridToolbarBase } from '@mui/x-data-grid/base'; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to kickstart the discussion around "how to use x-components with Joy design system?" so that we keep this in mind when start implementing Joy components.
Goal
explore possible solution that will be used in the future for x-components (not only data-grid but other upcoming x-...)
also try to answer these question for each solution to pick the best
What we know
Joy will be the next design system that provide similar components as material design (
@mui/material
). However, some API might be different (mostly specific to material design) such asdisableRipple
in Button might not exist in Joy.In the future, both Joy and MD (material design) components will consume unstyled components (
@mui/core
) and provide styles based on the design system.Currently, x-components (data-grid) use
@mui/material
as a peer dependency viaimport
and providecomponents
api for overriding some part of the data-grid.MD components that are used in DataGrid
Possible options
1. Resolution
similar to
styled-engine
andstyled-engine-sc
2. use
@mui/core
inside x-componentsx-components have
@mui/core
as a peer dependency but how to get the styles from a design system? 🤷♂️3. Factory API
x-components have to provide a creator function and let the developer pass in components.
Beta Was this translation helpful? Give feedback.
All reactions