@stanfordspezi/spezi-web-design-system
Version:
Stanford Biodesign Digital Health Spezi Web Design System
20 lines (19 loc) • 540 B
TypeScript
import { ReactNode } from 'react';
interface StringChildrenProps {
children: string;
value?: string;
}
interface ReactNodeChildrenProps {
children: ReactNode;
value: string;
}
type CopyTextProps = (StringChildrenProps | ReactNodeChildrenProps) & {
className?: string;
};
/**
* Displays copiable text.
* Useful for displaying truncated ids in a compact manner,
* ensuring more screen estate.
*/
export declare const CopyText: ({ children, className, value }: CopyTextProps) => import("react").JSX.Element;
export {};