Card
Questi contenuti non sono ancora disponibili nella tua lingua.
import { Card } from "@rebasepro/ui";| Prop | Type | Required | Description |
|---|---|---|---|
children |
React.ReactNode |
yes | |
style |
React.CSSProperties |
— | |
onClick |
((e?: React.MouseEvent) => void) & React.MouseEventHandler<HTMLDivElement> |
— | |
className |
string |
— | |
id |
string |
— | |
ref |
React.Ref |
— | Allows getting a ref to the component instance. Once the component unmounts, React will set ref.current to null (or |
Example
Section titled “Example”This is the example the design-system sync renders and verifies for this component.
import { Card, Typography, Chip, FolderKanbanIcon } from "@rebasepro/ui";
export const ProjectCard = () => ( <div className="p-4 w-72"> <Card className="overflow-hidden"> <div className="relative h-20 bg-surface-100 dark:bg-surface-900 flex items-center justify-center"> <FolderKanbanIcon size={26} className="text-surface-400 dark:text-surface-500"/> <div className="absolute top-2 right-2"> <Chip colorScheme="orange" size="smallest" outlined>High</Chip> </div> </div> <div className="p-3"> <Typography variant="caption" color="disabled" className="font-mono text-[10px] block">PRJ-104</Typography> <Typography variant="body2" className="font-medium my-1">Q3 marketing site refresh</Typography> <div className="flex items-center gap-1.5 flex-wrap"> <Chip colorScheme="blue" size="smallest">In progress</Chip> <Chip colorScheme="cyan" size="smallest">design</Chip> </div> </div> </Card> </div>);