krypton-ui
Version:
<h1 align="center"> <p align="center"><a href="https://krypton-ui.com"><img src="https://user-images.githubusercontent.com/7073241/224507377-395bffc0-9ff7-4d74-865b-f734394a7e7e.png" alt="Krypton" width="200"></a></p> </h1>
28 lines (27 loc) • 775 B
TypeScript
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 {};