UNPKG

@jirkasa/code-box

Version:

Showcase code samples on the web with a container that lets users select and display different samples.

21 lines (20 loc) 881 B
import ElementFileButton from "../ElementFileButton"; /** Represents file button for project code box. */ declare class ProjectFileButton extends ElementFileButton { /** Download icon of button. */ private downloadIcon; /** Text element of button. */ private textElement; /** * Creates new file button. * @param text Text of button. * @param downloadLink Download link (or null to disable download). * @param svgSpritePath Path to SVG sprite. * @param iconName Name of icon for button. * @param downloadIconName Name of download icon for button. */ constructor(text: string, downloadLink?: string | null, svgSpritePath?: string | null, iconName?: string | null, downloadIconName?: string | null); setText(text: string): void; setDownloadLink(downloadLink: string | null): void; } export default ProjectFileButton;