welcome-ui
Version:
Customizable design system with react • styled-components • styled-system and ariakit.
28 lines (27 loc) • 678 B
TypeScript
import { CSSProperties } from 'react';
import { CreateWuiProps } from '../System';
declare const TAG_NAMES: {
h0: string;
h1: string;
h2: string;
h3: string;
h4: string;
h5: string;
h6: string;
lg: string;
md: string;
sm: string;
'subtitle-md': string;
'subtitle-sm': string;
xs: string;
};
export interface TextOptions {
lines?: number;
variant?: Variant;
withDash?: boolean;
wordBreak?: CSSProperties['wordBreak'];
}
export type TextProps = CreateWuiProps<'p', TextOptions>;
type Variant = keyof typeof TAG_NAMES;
export declare const Text: import('../System').CreateWuiComponent<"p", TextProps>;
export {};