UNPKG

react-pdf-builder

Version:
18 lines (17 loc) 952 B
import React from 'react'; import { SwatchColor } from '../../themes/ColorScheme'; import { DivProps } from '../basics/Div'; export interface ButtonProps extends DivProps { /** Optional. When provided, Button becomes a clickable link. */ href?: string; /** Optional. When `true`, corners will be round. */ pill?: boolean; /** Optional. Color for the button text when the `link` swatch is used. */ linkColor?: 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, or the special `'link'` swatch. */ swatch?: SwatchColor | 'link'; } /** * Read the [full documentation for Button](https://justinmahar.github.io/react-pdf-builder/?path=/docs/documentation-components-button--docs) */ export declare const Button: ({ children, className, style, ...props }: ButtonProps) => React.JSX.Element;