interface CodePenStyleOptions { /** @default 300 */ height?: number | string; /** @default "none" */ border?: "none" | "thin" | "thick"; /** @default "#000000" */ "border-color"?: string; /** @default "#3d3d3e" */ "tab-bar-color"?: string; /** @default "#76daff" */ "tab-link-color"?: string; /** @default "#cccccc" */ "active-tab-color"?: string; /** @default "#000000" */ "active-link-color"?: string; /** @default #ffffff */ "link-logo-color"?: string; /** Additional class name */ class?: string; /** Custom css link */ "custom-css-url"?: string; } /** * Options accepted by `loadCodePens()`. * * Any additional `data-*` attribute on a container is passed through as an option and serialized * into the embed URL or prefill form, so misspelled attributes are forwarded verbatim. DOM * attributes are always strings, even for boolean-style options such as `open` and `preview`. */ interface CodePenDomOptions extends CodePenStyleOptions, Record { /** * Id of theme * * @default 0 */ "theme-id"?: string | number; "slug-hash"?: string; user?: string; /** * One of or a set of "html" | "css" | "js" | "result" * * @default "result" */ "default-tab"?: string; animations?: "run" | "stop-after-5"; preview?: boolean | "true" | "false"; /** @default 1 */ zoom?: 1 | 0.5 | 0.25; token?: string; "pen-title"?: string; /** @default "false" */ open?: boolean | "true" | "false"; } interface CodePenPrefillOptions { title?: string; description?: string; head?: string; tags?: string | string[]; html?: string; css?: string; js?: string; html_pre_processor?: string; css_pre_processor?: string; js_pre_processor?: string; html_classes?: string | string[]; stylesheets?: string | string[]; scripts?: string | string[]; } interface CodePenOptions extends CodePenDomOptions { prefill?: CodePenPrefillOptions; /** @default "false" */ editable?: boolean | "true" | "false"; } export declare const renderCodePen: (options: CodePenOptions, selector?: string | HTMLElement) => void; export declare const loadCodePens: (selector?: string, options?: CodePenDomOptions) => void; export declare const openCodePens: (selector?: string) => void; export type { CodePenDomOptions, CodePenOptions, CodePenPrefillOptions, CodePenStyleOptions }; //# sourceMappingURL=index.d.ts.map