@sinchsmb/ui-kit
Version:
UI kit for SinchSMB frontend
14 lines (13 loc) • 581 B
TypeScript
import { ReactNode } from 'react';
import { CommonProps } from '../../types';
import { TextVariant } from './constants';
/** Props for the {@link Text} component. */
export interface TextProps extends CommonProps {
/** Variant of text rendering */
variant: TextVariant;
/** HTML tag name that should be used for text rendering */
as?: keyof JSX.IntrinsicElements;
children?: ReactNode;
}
/** Text component is used to display text. */
export declare const Text: import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<HTMLElement>>;