UNPKG

@fidely-ui/react

Version:

Fidely UI is a modern, beautifully crafted React design system powered by Ark UI and Panda CSS, delivering accessible and themeable components for building exceptional web apps

16 lines (15 loc) 915 B
import * as React from 'react'; import { type PolymorphicProps } from '@ark-ui/react/factory'; import { type ComponentProps } from '@fidely-ui/styled-system/types'; declare const StyledButton: import("@fidely-ui/styled-system/types").StyledComponent<React.ForwardRefExoticComponent<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & PolymorphicProps>, import("@fidely-ui/styled-system/recipes").ButtonVariantProps>; interface LoadingButtonProps { isLoading?: boolean; loadingText?: React.ReactNode; spinnerPlacement?: 'start' | 'end'; spinner?: React.ReactNode; } type ButtonBaseProps = ComponentProps<typeof StyledButton>; export interface ButtonProps extends ButtonBaseProps, LoadingButtonProps, PolymorphicProps { } export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>; export {};