goobs-frontend
Version:
A comprehensive React-based libary for building modern web applications
41 lines • 1.37 kB
TypeScript
import { FC } from 'react';
export interface CodeCopyStyles {
/** Theme selection: light, dark, or sacred */
theme?: 'light' | 'dark' | 'sacred';
/** Whether the component is disabled */
disabled?: boolean;
/** Custom container background color */
containerBackground?: string;
/** Custom header background color */
headerBackground?: string;
/** Custom code block background color */
codeBackground?: string;
/** Custom text color */
textColor?: string;
/** Custom border color */
borderColor?: string;
/** Custom border radius */
borderRadius?: string;
/** Custom font family for code */
fontFamily?: string;
/** Custom font size for code */
fontSize?: string;
/** Custom line height for code */
lineHeight?: string;
/** Whether to show line numbers */
showLineNumbers?: boolean;
}
export interface CodeCopyProps {
/** Code content to display and copy */
code: string;
/** Programming language for syntax highlighting */
language: string;
/** Comprehensive styling options including theme, custom colors, and layout properties */
styles?: CodeCopyStyles;
}
/**
* A code display component with syntax highlighting and copy functionality.
*/
declare const CodeCopy: FC<CodeCopyProps>;
export default CodeCopy;
//# sourceMappingURL=index.d.ts.map