@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
18 lines (17 loc) • 818 B
TypeScript
import type { Generic } from 'adopted-style-sheets';
import type { HeadingLevel, PropAlign, PropHasCloser, PropLabel, PropOpen } from '../props';
import type { KoliBriModalEventCallbacks } from '../types';
type RequiredProps = PropLabel;
type OptionalProps = PropAlign & PropHasCloser & PropOpen & {
level?: HeadingLevel;
on: KoliBriModalEventCallbacks;
};
type RequiredStates = PropAlign & PropOpen & PropLabel;
type OptionalStates = PropHasCloser & {
level?: HeadingLevel;
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 {};