react-pdf-builder
Version:
Build beautiful PDF documents in React.
15 lines (14 loc) • 927 B
TypeScript
import { LinkProps } from '@react-pdf/renderer';
import React from 'react';
import { SwatchColor } from '../../themes/ColorScheme';
export interface ThemedLinkProps extends LinkProps {
children?: any;
/** 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;
/** 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;
}
/**
* Read the [full documentation for ThemedLink](https://justinmahar.github.io/react-pdf-builder/?path=/docs/documentation-components-basics-themedlink--docs)
*/
export declare const ThemedLink: ({ children, className, style, ...props }: ThemedLinkProps) => React.JSX.Element;