@mantine/code-highlight
Version:
Code highlight with Mantine theme
14 lines (13 loc) • 642 B
TypeScript
import { BoxProps, MantinePolymorphicComponent, PolymorphicFactory, StylesApiProps } from '@mantine/core';
export interface CodeHighlightControlProps extends BoxProps, StylesApiProps<CodeHighlightControlFactory> {
/** Control icon */
children?: React.ReactNode;
/** Label displayed in the tooltip when the control is hovered */
tooltipLabel?: string;
}
export type CodeHighlightControlFactory = PolymorphicFactory<{
props: CodeHighlightControlProps;
defaultRef: HTMLButtonElement;
defaultComponent: 'button';
}>;
export declare const CodeHighlightControl: MantinePolymorphicComponent<CodeHighlightControlFactory>;