Replies: 2 comments 4 replies
-
Maybe you can waiting for #40221 |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think the solution in #40221 doesn't have the flexibility to change the style like For example, if I need to style the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What problem does this feature solve?
Consider the addition of the
sx
prop like the MUI v5 for the Antd v5Through the process of using antd v5, I found everything to be great. However, there will be annoying problems when it is necessary to integrate with css frameworks like tailwindcss.
I have been using React MUI v5, and I find the
sx
prop to be a great alternative to using less, scss, tailwindcss (somewhat),... to custom style Antd components more quickly, plus it also supports styles for subclasses right insx
propsSuppose I use the antd's Alert Component as follows
Then HTML was born on the browser as follows
And now to be able to custom style for div has class
ant-alert-contents
andant-alert-message
. I can do in the following way if there issx
prop like the React MUI v5And for long -term convenience, if there is a component like
Box
of the Mui, is a wrapper for div/span ... any tag html will help us to be more flexible in the style for antdHere is an example
I think this will be a great solution for the style in the ANTD to be easier and more wonderful
What does the proposed API look like?
Related topic
Beta Was this translation helpful? Give feedback.
All reactions