UNPKG

puppy-lib-components

Version:

A modern TypeScript React component library with generic UI components and football pickem domain components

39 lines (38 loc) 791 B
import React from 'react'; export interface User { id: number; username: string; email?: string; firstName?: string; lastName?: string; avatarUrl?: string; isActive?: boolean; createdAt?: string; } export interface UserCardProps { /** * The user data to display */ user: User; /** * Whether to show additional user details */ showDetails?: boolean; /** * Whether the card is clickable */ clickable?: boolean; /** * Click handler */ onClick?: (user: User) => void; /** * Additional CSS class name */ className?: string; /** * Custom actions to display in the card */ actions?: React.ReactNode; } export declare const UserCard: React.FC<UserCardProps>;