UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

50 lines 1.54 kB
import { TooltipProps } from "../Tooltip/type.mjs"; import "../Tooltip/index.mjs"; import { CSSProperties, ElementType, HTMLAttributes, Ref } from "react"; //#region src/base-ui/Text/type.d.ts interface TextClassNames { root?: string; } interface TextStyles { root?: CSSProperties; } interface TextBaseProps extends HTMLAttributes<HTMLDivElement> { align?: 'left' | 'center' | 'right'; as?: ElementType; classNames?: TextClassNames; code?: boolean; color?: string; delete?: boolean; disabled?: boolean; ellipsis?: boolean | { rows?: number; tooltip?: boolean | string | Omit<TooltipProps, 'children'>; tooltipWhenOverflow?: boolean; }; fontSize?: number | string; italic?: boolean; lineClamp?: number; lineHeight?: CSSProperties['lineHeight']; mark?: boolean; noWrap?: boolean; ref?: Ref<HTMLDivElement>; strong?: boolean; styles?: TextStyles; textDecoration?: CSSProperties['textDecoration']; textTransform?: CSSProperties['textTransform']; type?: 'secondary' | 'success' | 'warning' | 'danger' | 'info'; underline?: boolean; weight?: 'bold' | 'bolder' | number; whiteSpace?: CSSProperties['whiteSpace']; wordBreak?: CSSProperties['wordBreak']; } type TextProps<Shiny extends boolean = boolean> = TextBaseProps & (Shiny extends true ? { shiny: true; shinyDuration?: CSSProperties['animationDuration']; } : { shiny?: false; shinyDuration?: never; }); //#endregion export { TextBaseProps, TextClassNames, TextProps, TextStyles }; //# sourceMappingURL=type.d.mts.map