@welcome-ui/button
Version:
welcome-ui: A button component
21 lines (20 loc) • 937 B
TypeScript
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>;