@neuctra/ui
Version:
A modern, responsive, customizable React UI component library powered by Tailwind CSS and Vite.
40 lines (39 loc) • 1.22 kB
TypeScript
import { default as React, JSX } from 'react';
interface TextProps {
as?: keyof JSX.IntrinsicElements;
children: React.ReactNode;
className?: string;
color?: string;
bgColor?: string;
fontSize?: string;
fontWeight?: "normal" | "bold" | "lighter" | "bolder" | number;
textAlign?: "left" | "center" | "right" | "justify";
textTransform?: "uppercase" | "lowercase" | "capitalize" | "none";
lineHeight?: string;
letterSpacing?: string;
maxWidth?: string;
padding?: string;
margin?: string;
borderRadius?: string;
boxShadow?: string;
shadowColor?: string;
wordBreak?: "normal" | "break-word" | "break-all" | "keep-all";
italic?: boolean;
bold?: boolean;
underline?: boolean;
strikethrough?: boolean;
selectable?: boolean;
truncate?: boolean;
hoverColor?: string;
hoverBgColor?: string;
hoverTextDecoration?: "underline" | "line-through" | "none";
activeColor?: string;
activeBgColor?: string;
transitionDuration?: string;
onClick?: () => void;
href?: string;
target?: "_blank" | "_self" | "_parent" | "_top";
rel?: string;
}
export declare const Text: React.FC<TextProps>;
export {};