fictoan-react
Version:
A full-featured, designer-friendly, yet performant framework with plain-English props and focus on rapid iteration.
14 lines (13 loc) • 720 B
TypeScript
import React from "react";
import { CommonAndHTMLProps, SpacingTypes, WeightTypes } from '../Element/constants';
export interface TextCustomProps {
fontStyle?: "sans-serif" | "serif" | "monospace";
weight?: WeightTypes;
isSubtext?: boolean;
size?: SpacingTypes;
align?: "left" | "centre" | "center" | "right";
}
export type TextElementType = HTMLParagraphElement;
export type TextProps = Omit<CommonAndHTMLProps<TextElementType>, keyof TextCustomProps> & TextCustomProps;
export declare const Text: React.ForwardRefExoticComponent<Omit<CommonAndHTMLProps<HTMLParagraphElement>, keyof TextCustomProps> & TextCustomProps & React.RefAttributes<HTMLParagraphElement>>;
//# sourceMappingURL=Text.d.ts.map