UNPKG

krypton-vite-demo

Version:
28 lines (27 loc) 775 B
import { ComponentPropsWithoutRef } from "react"; type HeightType = { height?: string; }; type CardBaseType = { children: React.ReactNode; }; type CardImageType = HeightType & { imgSrc: string; alt?: string; }; type CardHeaderType = { title: string; subtitle: string; avatar: React.ReactNode; }; export type WrapperStyledProps = { maxWidth?: string; }; export type HeightStyledProps = HeightType; export type CardHeaderProps = ComponentPropsWithoutRef<"div"> & CardHeaderType; export type CardProps = ComponentPropsWithoutRef<"div"> & CardBaseType & { maxWidth?: string; }; export type CardImageProps = ComponentPropsWithoutRef<"img"> & CardImageType; export type CardBaseProps = ComponentPropsWithoutRef<"div"> & CardBaseType; export {};