@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
13 lines (12 loc) • 619 B
TypeScript
import type { Events } from '../enums';
import type { EventCallback, EventValueOrEventCallback } from '../types/callbacks';
import type { StencilUnknown } from '../types/unknown';
import type { Generic } from 'adopted-style-sheets';
export type ButtonCallbacksPropType<T> = {
[Events.onClick]?: EventValueOrEventCallback<MouseEvent, T>;
[Events.onMouseDown]?: EventCallback<MouseEvent>;
};
export type PropButtonCallbacks<T> = {
on: ButtonCallbacksPropType<T>;
};
export declare const validateButtonCallbacks: (component: Generic.Element.Component, value?: ButtonCallbacksPropType<StencilUnknown>) => void;