@create-figma-plugin/ui
Version: 
Production-grade Preact components that replicate the Figma UI design
16 lines • 826 B
TypeScript
import { ComponentChildren } from 'preact';
import { EventHandler } from '../../types/event-handler.js';
import { FocusableComponentProps } from '../../types/focusable-component-props.js';
export interface SelectableItemProps extends FocusableComponentProps<HTMLInputElement> {
    bold?: boolean;
    children: ComponentChildren;
    disabled?: boolean;
    indent?: boolean;
    onChange?: EventHandler.onChange<HTMLInputElement>;
    onValueChange?: EventHandler.onValueChange<boolean>;
    value: boolean;
}
export declare const SelectableItem: import("preact").FunctionalComponent<Omit<import("../../utilities/create-component.js").MixinHTMLElementAttributes<HTMLInputElement, SelectableItemProps>, "ref"> & {
    ref?: import("preact").Ref<HTMLInputElement> | undefined;
}>;
//# sourceMappingURL=selectable-item.d.ts.map