@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
16 lines (15 loc) • 752 B
TypeScript
import type { Generic } from 'adopted-style-sheets';
import type { PropAlign, PropHasCloser, PropLabel, PropOpen } from '../props';
import type { KoliBriModalEventCallbacks } from '../types';
type RequiredProps = PropLabel;
type OptionalProps = PropAlign & PropHasCloser & PropOpen & {
on: KoliBriModalEventCallbacks;
};
type RequiredStates = PropAlign & PropOpen & PropLabel;
type OptionalStates = PropHasCloser & {
on: KoliBriModalEventCallbacks;
};
export type DrawerProps = Generic.Element.Members<RequiredProps, OptionalProps>;
export type DrawerStates = Generic.Element.Members<RequiredStates, OptionalStates>;
export type DrawerAPI = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>;
export {};