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

18 lines (17 loc) 963 B
import React from 'react'; import { IButton } from './types/button'; declare const ButtonBoundary: <V = string | undefined, S = string | undefined>(props: IButton<V, S>, ref: React.ForwardedRef<HTMLButtonElement> | undefined | null) => JSX.Element; declare const Button: <V = undefined extends string | unknown ? string | undefined : string | unknown, S = undefined extends string | unknown ? string | undefined : string | unknown>(props: React.PropsWithChildren<IButton<V, S>> & { ref?: React.ForwardedRef<HTMLButtonElement> | undefined | null; }) => ReturnType<typeof ButtonBoundary>; /** * Represents the button component. * * @function Button * @category Atoms * @param {React.PropsWithChildren<IButton>} props - The props for the component. * @param {React.ForwardedRef<HTMLButtonElement>} ref - The ref for the component. * @returns {JSX.Element} - The JSX element representing the button component. */ export { Button }; export default Button;