svelte-rune-highlight
Version:
A highlight library for Svelte 5 with Rune
24 lines (23 loc) • 649 B
TypeScript
import type { HTMLAttributes } from 'svelte/elements';
interface Props extends HTMLAttributes<HTMLPreElement> {
code?: string;
highlighted?: string;
languageName?: string;
langtag?: boolean;
class?: string;
codeClass?: string;
}
/**
* [Go to docs](https://svelte-rune-highlight.codewithshin.com/)
* ## Props
* @prop code = ''
* @prop highlighted = ''
* @prop languageName = 'plaintext'
* @prop langtag = false
* @prop class: className = ''
* @prop codeClass
* @prop ...restProps
*/
declare const LangTag: import("svelte").Component<Props, {}, "">;
type LangTag = ReturnType<typeof LangTag>;
export default LangTag;