onecart-ui
Version:
Cross-platform React and React Native component library with white-label support
32 lines • 799 B
TypeScript
import { TypographyProps } from "./Typography";
/**
* Text component props extending Typography props with additional features
*/
export interface TextProps extends TypographyProps {
/**
* Whether the text should be underlined
* @default false
*/
underline?: boolean;
/**
* Whether the text should have a strikethrough line
* @default false
*/
strikethrough?: boolean;
/**
* Whether the text should be italic
* @default false
*/
italic?: boolean;
/**
* Whether the text should be styled as a link
* @default false
*/
link?: boolean;
/**
* Callback function when the link is pressed
* Only used when link prop is true
*/
onLinkPress?: () => void;
}
//# sourceMappingURL=Text.d.ts.map