UNPKG

@desci-labs/frontend-components

Version:

A library for commonly used components on the DeSci Frontend web apps

21 lines 879 B
import { default as React } from 'react'; export interface ButtonProps { /** The content to be displayed inside the button */ children: React.ReactNode; /** Optional click handler */ onClick?: () => void; /** The visual style variant of the button */ variant?: 'default' | 'secondary' | 'outline' | 'primary' | 'danger' | 'ghost'; /** The size of the button */ size?: 'default' | 'xs' | 'sm' | 'lg' | 'icon'; /** Whether the button is an asChild component */ asChild?: boolean; /** The className of the button */ className?: string; /** The disabled state of the button */ disabled?: boolean; /** The type of the button */ type?: 'button' | 'submit' | 'reset'; } export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>; //# sourceMappingURL=Button.d.ts.map