UNPKG

@cerberus-design/react

Version:

The Cerberus Design React component library.

20 lines (19 loc) 834 B
import { ButtonHTMLAttributes, PropsWithChildren } from 'react'; import { ButtonVariantProps } from 'styled-system/recipes'; import { CerberusPrimitiveProps } from '../../system/types'; export interface ButtonProps extends ButtonVariantProps, ButtonHTMLAttributes<HTMLButtonElement> { /** * If true, the button will show a loading spinner. */ pending?: boolean; } /** * A component that allows the user to perform actions * @see https://cerberus.digitalu.design/react/button */ export declare function Button(props: CerberusPrimitiveProps<ButtonProps>): import("react/jsx-runtime").JSX.Element; /** * An icon to display in a button that utilizes the pending state to display * a loading spinner. */ export declare function ButtonIcon(props: PropsWithChildren<object>): import("react/jsx-runtime").JSX.Element;