UNPKG

@veracity/vui

Version:

Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.

31 lines (30 loc) 1.04 kB
import { ThemingProps } from "../theme/types.js"; import "../theme/index.js"; import { SystemProps } from "../system/system.js"; import "../system/index.js"; import { IconProp } from "../icon/icon.types.js"; import "../icon/index.js"; //#region src/copyToClipboard/copyToClipboard.types.d.ts type CopyToClipboardValueProps = { /** Text string to copy. */ value: string; /** @deprecated Use `value` instead. */ copyText?: string; } | { value?: never; /** @deprecated Use `value` instead. */ copyText: string; }; type CopyToClipboardProps = SystemProps & ThemingProps<'Button'> & CopyToClipboardValueProps & { /** Text used in the tooltip and accessible action label. Empty strings default to `value` or `copyText`. */ label?: string; /** Icon @default uiCopy */ icon?: IconProp; /** Button size @default "sm" */ size?: 'sm' | 'md' | 'lg'; /** Whether to show the tooltip @default true */ showTooltip?: boolean; }; //#endregion export { CopyToClipboardProps }; //# sourceMappingURL=copyToClipboard.types.d.ts.map