create-nova-vite-template
Version:
This is a dashboard template built with React and Vite. It provides a modern and responsive user interface for building web applications.
24 lines (22 loc) • 536 B
text/typescript
import { ReactNode } from "react";
import { TranslationKeyEnum } from "@/types/TranslationKeyEnum";
import FontFamily from "@/constants/FontFamily";
import COLORS from "@/constants/COLORS";
export interface TextProps {
children?: ReactNode;
i18nKey?: TranslationKeyEnum;
/**
* @default 14
*/
fontSize?: number;
/**
* @default "font400"
*/
fontFamily?: keyof typeof FontFamily;
/**
* @default "dark"
*/
color?: keyof typeof COLORS;
lineHeight?: number;
className?: string;
}