puppy-lib-components
Version:
A modern TypeScript React component library with generic UI components and football pickem domain components
48 lines (47 loc) • 1.2 kB
TypeScript
import React from 'react';
export interface CardProps {
/**
* The content of the card
*/
children: React.ReactNode;
/**
* The variant of the card
*/
variant?: 'default' | 'elevated' | 'outlined';
/**
* Whether the card is interactive (clickable)
*/
interactive?: boolean;
/**
* Click handler for interactive cards
*/
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
/**
* Additional CSS class name
*/
className?: string;
/**
* The padding size of the card
*/
padding?: 'none' | 'sm' | 'md' | 'lg';
/**
* Inline styles
*/
style?: React.CSSProperties;
}
export declare const Card: React.FC<CardProps>;
export interface CardHeaderProps {
children: React.ReactNode;
className?: string;
}
export declare const CardHeader: React.FC<CardHeaderProps>;
export interface CardContentProps {
children: React.ReactNode;
className?: string;
}
export declare const CardContent: React.FC<CardContentProps>;
export interface CardFooterProps {
children: React.ReactNode;
className?: string;
}
export declare const CardFooter: React.FC<CardFooterProps>;