UNPKG

@create-figma-plugin/ui

Version:

Production-grade Preact components that replicate the Figma UI design

14 lines 793 B
import { ComponentChildren } from 'preact'; import { EventHandler } from '../../types/event-handler.js'; import { FocusableComponentProps } from '../../types/focusable-component-props.js'; export interface IconToggleButtonProps extends FocusableComponentProps<HTMLInputElement> { children: ComponentChildren; disabled?: boolean; onChange?: EventHandler.onChange<HTMLInputElement>; onValueChange?: EventHandler.onValueChange<boolean>; value: boolean; } export declare const IconToggleButton: import("preact").FunctionalComponent<Omit<import("../../utilities/create-component.js").MixinHTMLElementAttributes<HTMLInputElement, IconToggleButtonProps>, "ref"> & { ref?: import("preact").Ref<HTMLInputElement> | undefined; }>; //# sourceMappingURL=icon-toggle-button.d.ts.map