@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
22 lines (21 loc) • 764 B
TypeScript
import { type FunctionalComponent as FC } from '../../stencil-public-runtime';
import { type ButtonProps } from '../Button';
import { type IconProps } from '../Icon';
import type { ButtonVariantPropType } from '../../schema';
type IconType = Partial<Omit<IconProps, 'icons'>> & {
componentName: 'icon';
icon?: string;
class?: string;
onClick?: (event: MouseEvent) => void;
};
type ButtonType = Partial<Omit<ButtonProps, 'icons'>> & {
componentName: 'button';
icon?: string;
label?: string;
class?: string;
buttonVariant?: ButtonVariantPropType;
onClick?: (event: MouseEvent) => void;
};
export type IconButtonProps = IconType | ButtonType;
declare const KolIconButtonFc: FC<IconButtonProps>;
export default KolIconButtonFc;