svelte-rune-highlight
Version:
A highlight library for Svelte 5 with Rune
32 lines (31 loc) • 879 B
TypeScript
import type { SvelteSet } from 'svelte/reactivity';
interface Props {
lines: string[];
startingLineNumber?: number;
highlightedLines: SvelteSet<number>;
width: number;
position?: 'static' | 'relative' | 'absolute' | 'sticky';
hideBorder?: boolean;
wrapLines?: boolean;
backgroundColor?: string;
highlightedBackground?: string;
}
/**
* [Go to docs](https://svelte-rune-highlight.codewithshin.com/)
* ## Props
* @prop lines
* @prop startingLineNumber = 1
* @prop highlightedLines
* @prop width
* @prop position = 'sticky'
* @prop hideBorder
* @prop wrapLines
* @prop backgroundColor
* @prop highlightedBackground = 'rgba(254
* @prop 241
* @prop 96
* @prop 0.2)'
*/
declare const LineNumberTable: import("svelte").Component<Props, {}, "">;
type LineNumberTable = ReturnType<typeof LineNumberTable>;
export default LineNumberTable;