react-pdf-builder
Version:
Build beautiful PDF documents in React.
15 lines (14 loc) • 935 B
TypeScript
import { TextProps } from '@react-pdf/renderer';
import React from 'react';
import { SwatchColor } from '../../themes/ColorScheme';
export interface ThemedTextProps extends TextProps {
children?: any;
/** Optional. One of the [swatch color names](https://justinmahar.github.io/react-pdf-builder/?path=/docs/documentation-themes--docs#swatch-colors) from the theme, as a string. */
swatch?: SwatchColor;
/** Optional. Class name string used to style the component. [Class names](https://justinmahar.github.io/react-pdf-builder/?path=/docs/documentation-themes--docs#class-names) are defined in themes. */
className?: string;
}
/**
* Read the [full documentation for ThemedText](https://justinmahar.github.io/react-pdf-builder/?path=/docs/documentation-components-basics-themedtext--docs)
*/
export declare const ThemedText: ({ children, className, style, swatch, ...props }: ThemedTextProps) => React.JSX.Element;