UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

23 lines (22 loc) 974 B
import type { Generic } from 'adopted-style-sheets'; import type { PropHideLabel, PropLabelWithExpertSlot, PropBadgeText } from '../props'; import type { KoliBriCustomIcon, KoliBriIconsProp, Stringified } from '../types'; type RequiredProps = PropLabelWithExpertSlot; type OptionalProps = { allowMarkdown: boolean; icons: Stringified<KoliBriIconsProp>; } & PropHideLabel & PropBadgeText; type RequiredStates = { allowMarkdown: boolean; icons: { top?: KoliBriCustomIcon; right?: KoliBriCustomIcon; bottom?: KoliBriCustomIcon; left?: KoliBriCustomIcon; }; } & PropLabelWithExpertSlot; type OptionalStates = PropHideLabel & PropBadgeText; export type SpanProps = Generic.Element.Members<RequiredProps, OptionalProps>; export type SpanStates = Generic.Element.Members<RequiredStates, OptionalStates>; export type SpanAPI = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>; export {};