@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
13 lines (12 loc) • 648 B
TypeScript
import type { Generic } from 'adopted-style-sheets';
import type { PropAlign, PropShow, PropPopoverCallbacks } from '../props';
type RequiredProps = NonNullable<unknown>;
type OptionalProps = PropAlign & PropShow & PropPopoverCallbacks;
type RequiredStates = PropAlign & PropShow & {
visible: boolean;
};
type OptionalStates = PropPopoverCallbacks;
export type PopoverProps = Generic.Element.Members<RequiredProps, OptionalProps>;
export type PopoverStates = Generic.Element.Members<RequiredStates, OptionalStates>;
export type PopoverAPI = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>;
export {};