UNPKG

@maizzle/framework

Version:

Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.

16 lines (15 loc) 766 B
import { MaizzleConfig } from "../types/config.js"; import { TailwindBlock } from "../composables/renderContext.js"; import { ChildNode } from "domhandler"; //#region src/transformers/tailwindComponent.d.ts /** * Compile Tailwind CSS for each top-level <Tailwind> block in the render * context. Nested <Tailwind> instances are flattened: their classes flow * up to the outermost block, their `#config` slot (if any) is ignored. * One <style> per outermost block is appended to <head>; marker comments * are stripped after. */ declare function tailwindComponent(dom: ChildNode[], blocks: TailwindBlock[], config: MaizzleConfig, filePath?: string): Promise<ChildNode[]>; //#endregion export { tailwindComponent }; //# sourceMappingURL=tailwindComponent.d.ts.map