UNPKG

@cerberus-design/react

Version:

The Cerberus Design React component library.

54 lines (53 loc) 1.43 kB
import { ElementType } from 'react'; /** * This module contains the parts of the Clipboard component. * @module 'clipboard/parts' */ interface ClipboardPartsValue { /** * The root context provider of the clipboard. */ Root: ElementType; /** * The label of the clipboard. */ Label: ElementType; /** * The control of the clipboard. */ Control: ElementType; /** * The input of the clipboard. */ Input: ElementType; /** * The raw context of the clipboard. Useful for obtaining the context state * within the hierarchy of the clipboard component. */ Context: ElementType; /** * The trigger of the clipboard. */ Trigger: ElementType; /** * A simple abstraction around the `Clipboard.Indicator` component that * provides default "Copy" and "Copied" icons. */ Indicator: ElementType; /** * A simple abstraction around the `Clipboard.Indicator` component that * provides default "Copy" and "Copied" text. */ CopyText: ElementType; } /** * An Object containing the parts of the Clipboard component. For users that * prefer Object component syntax. * * @remarks * * When using object component syntax, you import the Clipboard parts object and * the entire family of components versus only what you use. */ export declare const Clipboard: ClipboardPartsValue; export {};