Card
Card component for displaying content in a structured layout.
import { Card } from '@document-writing-tools/kernux-react';
<Card
variant="large"
vorzeile="Latest News"
title="Important Update"
subline="Published today"
body="This is the card content describing the update in detail."
imgSrc="/image.jpg"
imgAlt="Update illustration"
primaryAction={{
label: "Read More",
href: "/updates/123"
}}
secondaryAction={{
label: "Share",
href: "/share/123"
}}
/>Props:
variant?: "small" | "large"- Card size variantvorzeile?: string- Pre-line text above the titletitle: string- Required card titlesubline?: string- Subtitle textbody?: string- Main content textimgSrc?: string- Image source URLimgAlt?: string- Image alt textprimaryAction?: { label: string; href: string }- Primary action buttonsecondaryAction?: { label: string; href: string }- Secondary action button