@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
22 lines (21 loc) • 741 B
TypeScript
import type { Generic } from 'adopted-style-sheets';
import type { PropColor } from '../props';
import type { Stringified } from '../types';
type RequiredProps = NonNullable<unknown>;
type OptionalProps = {
color: Stringified<PropColor>;
labeled: boolean;
};
type RequiredStates = {
color: {
red: number;
green: number;
blue: number;
};
labeled: boolean;
};
type OptionalStates = NonNullable<unknown>;
export type KolibriProps = Generic.Element.Members<RequiredProps, OptionalProps>;
export type KolibriStates = Generic.Element.Members<RequiredStates, OptionalStates>;
export type KolibriAPI = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>;
export {};