UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

15 lines (14 loc) 656 B
import React from 'react'; import { IElementOrIcon } from './types/elementOrIcon'; /** * ElementOrIcon component is a component that can be used to display either an element or an icon. * It offers flexibility in rendering either icons or more complex components within a given context. * @param {IElementOrIcon} props * @returns {JSX.Element} * @constructor * @example * <ElementOrIcon icon="icon" /> * <ElementOrIcon icon={<Icon icon="icon" />} /> * <ElementOrIcon icon={<Button variant="primary">Button</Button>} /> */ export declare const ElementOrIcon: React.ForwardRefExoticComponent<IElementOrIcon & React.RefAttributes<HTMLSpanElement>>;