svelte-rune-highlight
Version:
A highlight library for Svelte 5 with Rune
26 lines (25 loc) • 637 B
TypeScript
interface Props {
code?: string;
language?: string;
theme?: string;
lineNumbers?: boolean;
copyButton?: boolean;
class?: string;
style?: string;
[key: string]: any;
}
/**
* [Go to docs](https://svelte-rune-highlight.codewithshin.com/)
* ## Props
* @prop code = ''
* @prop language = 'auto'
* @prop theme = ''
* @prop lineNumbers = false
* @prop copyButton = false
* @prop class: className = ''
* @prop style = ''
* @prop ...restProps
*/
declare const CodeHighlight: import("svelte").Component<Props, {}, "">;
type CodeHighlight = ReturnType<typeof CodeHighlight>;
export default CodeHighlight;