className- Type
string- Default
- -
- Description
- Border, shading, and background utility custom overrides.
Search for a command to run...
Components / Display
அட்டை
Cards group related information and actions into a contained surface. They are the primary layout primitive for content in Tamil DS.
அட்டைகள் தொடர்புடைய தகவல்களை ஒரு மேற்பரப்பில் தொகுக்கின்றன.
5 parts documented for implementation and review.
<div>Root wrapper applying the surface treatment: rounded-md border, bg-card background, and shadow-xs. Uses overflow-hidden to clip child content. Supports data-size='sm' for compact cards with reduced padding and gap.
<div>Top section containing the title, description, and optional action elements. Applies px-6 padding. In Tamil-first UIs, the Tamil title should appear first with the English subtitle in muted text below.
<h3>Primary heading text at font-semibold text-lg. Connected to the card via semantic heading hierarchy. Should be descriptive and scannable.
<div>Main body area with px-6 padding. Accepts any children — forms, tables, text, images, lists. When card has no header, content handles all visual structure.
<div>Bottom action bar with flex layout and px-6 padding. Typically contains action buttons (Submit, Cancel), links, or metadata. Primary action on the right.
font-tamil on CardTitle.hover:shadow-sm hover:-translate-y-0.5 for interactive cards.classNamestring| Prop | Type | Default | Description |
|---|---|---|---|
className | string | - | Border, shading, and background utility custom overrides. |
Apply hover:shadow-sm and hover:-translate-y-0.5 so users get tactile feedback that the card is clickable.
அட்டை கிளிக் செய்யக்கூடியது என்று பயனர் புரிய hover:shadow-sm பயன்படுத்தவும்.
Nested cards create visual confusion and unclear hierarchy — use a list, table, or different surface instead.
அட்டைக்குள் அட்டை வைப்பது காட்சி குழப்பத்தை உருவாக்கும் — வேறு வடிவமைப்பு பயன்படுத்தவும்.
Placing the primary action in the footer, right-aligned, follows convention and makes it easy to find.
முதன்மை பொத்தானை அடிப்பகுதியில் வலதுபுறம் வைப்பது நடைமுறையை பின்பற்றி பயனருக்கு எளிதாக்கும்.
More than 2–3 actions on a card overwhelm the user — promote one primary action and hide the rest.
2–3-க்கும் அதிக செயல்கள் பயனரை குழப்பும் — ஒரு முதன்மை செயல் மட்டும் காட்டவும்.