UNPKG

bootstrap-esm

Version:

ES Module version of Bootstrap v5 with tree shaking support for optimized code

19 lines (14 loc) 566 B
import BaseComponent, { GetInstanceFactory, GetOrCreateInstanceFactory } from "./base-component"; declare class Button extends BaseComponent { /** * Toggles push state. Gives the button the appearance that it has been activated. */ toggle(): void; static getInstance: GetInstanceFactory<Button>; static getOrCreateInstance: GetOrCreateInstanceFactory<Button>; static jQueryInterface: Button.jQueryInterface; } declare namespace Button { type jQueryInterface = (config?: "toggle" | "dispose") => JQuery; } export default Button;