Naye tools shamil kiye gaye! Dekhein kya naya hai

Home/Components/Zamarah/Cards

Cards

Products, profiles, pricing aur content ke liye Tailwind CSS card components, responsive grids aur accessible links ke saath. HTML aur React code copy-paste karein.

0 Components

Cards mutalliqa maloomat ko ek hi, asani se scan hone wale block mein group karte hain. Yeh category Tailwind CSS se bane product, profile, pricing aur content cards ko cover karti hai jo akele ya grid mein repeat hone par ache lagte hain.

Ek ache card mein wazeh heading, consistent spacing aur ek saaf action hota hai. Yahan maujood components in tafseelat ko consistent rakhte hain taake content alag hone par bhi cards ka grid neat lage.

Aap in card components ke saath kya kar sakte hain

Product aur content cards

Image, title, mukhtasar description aur action ko aise layout mein dikhayein jo mobile par single column se lekar multi-column grid tak scale hota hai.

Profile aur pricing cards

Logon, plans ya services ko aligned details ke saath pesh karein taake farq ko ek hi nazar mein compare karna asan ho.

Grid mein consistency

Shared padding, borders aur radius cards ko aligned rakhte hain, aur equal-height rows buttons ko alag heights par jaane se rokti hain.

In card components ko kyun istemal karein

  • Pehli line se hi responsive, mobile-first grid ke saath.
  • Tailwind CSS utility classes ke saath restyle karna asan.
  • Markup jo simple rehta hai, taake cards ko extend karna asan ho.

Card components: aksar poochay jaane wale sawalat

Main accessibility ko kharab kiye bina pooray card ko clickable kaise bana sakta hoon?

Card ki main heading par ek link rakhein aur usay pooray card par stretch karein, taake ek hi focusable element ho, bajaye iske ke pooray card ko ek aise link mein wrap kiya jaye jismein doosre links bhi shamil hon.

Main cards ko ek hi height ka kaise rakh sakta hoon?

CSS grid ya flex column ka istemal karein jismein action ko bottom par push kiya gaya ho, taake kam text wale cards bhi apne barabar wale cards ke saath align rahein.

Kya card images mein alt text hona chahiye?

Haan, agar image mein koi maloomat ho. Agar yeh sirf decorative hai, toh khali alt attribute ka istemal karein taake screen readers isay skip kar dein.