import { PropsWithChildren, default as React } from 'react'; import { AlphaColor, PropsWithElementType } from '../../lib/types/props'; import { FlowComponentProps } from '../../lib/componentFactory/flowComponent'; import * as Aria from "react-aria-components"; export interface TextProps extends PropsWithChildren, Omit, PropsWithElementType<"span" | "div" | "p">, FlowComponentProps { /** * Whether the elements width should match the width it would have with bold * text. */ emulateBoldWidth?: boolean; /** The color of the text. @default "default" */ color?: "default" | AlphaColor; /** The alignment of the text. @default "start" */ align?: "start" | "end" | "center"; /** The text-wrap property of the text. */ wrap?: "wrap" | "balance" | "pretty"; /** The white-space property of the text. */ whiteSpace?: React.CSSProperties["whiteSpace"]; /** The word-break property of the text. */ wordBreak?: React.CSSProperties["wordBreak"]; /** * Disables standard and contextual ligatures for predictable, literal text * rendering. */ noLigatures?: boolean; } /** @flr-generate all */ export declare const Text: React.FunctionComponent>; export default Text;