app-ui / layout / cards
Card With Header And Footer
05-card-with-header-and-footer.jsx
export default function Example() {
return (
<div className="divide-y divide-gray-200 overflow-hidden rounded-lg bg-white shadow-sm dark:divide-white/10 dark:bg-gray-800/50 dark:shadow-none dark:outline dark:-outline-offset-1 dark:outline-white/10">
<div className="px-4 py-5 sm:px-6">
{/* Content goes here */}
{/* We use less vertical padding on card headers on desktop than on body sections */}
</div>
<div className="px-4 py-5 sm:p-6">{/* Content goes here */}</div>
<div className="px-4 py-4 sm:px-6">
{/* Content goes here */}
{/* We use less vertical padding on card footers at all sizes than on headers or body sections */}
</div>
</div>
)
}