Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add className for inner child div's of components (i.e Card) #46260

Closed
nadavhalfon opened this issue Dec 4, 2023 · 2 comments · Fixed by #46811
Closed

Add className for inner child div's of components (i.e Card) #46260

nadavhalfon opened this issue Dec 4, 2023 · 2 comments · Fixed by #46811

Comments

@nadavhalfon
Copy link

What problem does this feature solve?

For a better usability with TailwindCSS, I suggest that components that has one inner child that wraps everything that it'll be easy to add className, for example the body of a Card.
Moreover I think antd can improve in manner of customizations, lot's of properties are still hidden even in v5.
If tailwindcss can be used with it, it'l be great.
sometime there is a need to use important over antd classes which I didn't still realize why it rise above the immediate className being applied.

Thank you!

What does the proposed API look like?

<Card className="items-strech"/>
Or if you don't to use the className prop maybe create something similar to the bodyStyle

@MadCcc
Copy link
Member

MadCcc commented Dec 5, 2023

Feature request for classNames and styles of Card

@afc163
Copy link
Member

afc163 commented Feb 20, 2024

Supported in #46811

@afc163 afc163 closed this as completed Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants