react-pdf-builder
Version:
Build beautiful PDF documents in React.
20 lines (19 loc) • 1.21 kB
TypeScript
import React from 'react';
import { SwatchColor } from '../../themes/ColorScheme';
import { BoxProps } from '../layout/Box';
export interface CardHeaderProps extends BoxProps {
/** Optional. A custom component used to wrap the text. Defaults to [Heading5](https://justinmahar.github.io/react-pdf-builder/?path=/docs/documentation-components-typography-heading5--docs) with no bottom margin. */
as?: any;
/** Optional. Set to `true` when there is no body below the header. */
noBody?: boolean;
/** Optional. Set to `true` when there is another header above this header. */
withHeader?: boolean;
/** 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. Opacity value for the swatch color, from `0` to `1`. */
swatchOpacity?: number;
}
/**
* Read the [full documentation for CardHeader](https://justinmahar.github.io/react-pdf-builder/?path=/docs/documentation-components-cards-cardheader--docs)
*/
export declare const CardHeader: ({ children, className, style, ...props }: CardHeaderProps) => React.JSX.Element;