svelte-ux
Version:
A large collection of Svelte components, actions, stores and utils to simplify creating highly interactive and visual applications. Built using Tailwind with extensibility and customization in mind.
17 lines (16 loc) • 380 B
TypeScript
/**
* Add `code` and `highlightedCode` props to <Preview> from slot contents
*/
export function codePreview(): {
/**
* @param {Object} options
* @param {string} options.content
* @param {string} options.filename
*/
markup({ content, filename }: {
content: string;
filename: string;
}): Promise<{
code: string;
}>;
};