UNPKG

@welcome-ui/button

Version:
21 lines (20 loc) 937 B
import React from 'react'; import { CreateWuiProps } from '@welcome-ui/system'; export type Shape = 'circle' | 'square'; export type Size = 'xs' | 'sm' | 'md' | 'lg'; export type Variant = 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'disabled'; export interface ButtonOptions { /** Danger button with 3 variants: primary / tertiary / ghost */ danger?: boolean; disabled?: boolean; isLoading?: boolean; shape?: Shape; size?: Size; variant?: Variant; } export type ButtonProps = CreateWuiProps<'button', ButtonOptions>; /** * @tag button */ export declare const Button: import("@welcome-ui/system").CreateWuiComponent<"button", ButtonProps>; export declare const StyledButton: import("styled-components").StyledComponent<(props: import("@ariakit/react").ButtonProps<"button">) => React.ReactElement<any, string | React.JSXElementConstructor<any>>, import("@xstyled/system").Theme, ButtonOptions, never>;