UNPKG

@public-ui/components

Version:

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

13 lines (12 loc) 474 B
import type { Generic } from 'adopted-style-sheets'; import type { ButtonProps, LinkProps } from '../../schema'; export type ToolbarItemPropType = ({ type: 'button'; } & ButtonProps) | ({ type: 'link'; } & LinkProps); export type ToolbarItemsPropType = ToolbarItemPropType[]; export type PropToolbarItems = { items: ToolbarItemsPropType; }; export declare const validateToolbarItems: (component: Generic.Element.Component, value?: ToolbarItemsPropType) => void;