air-command-ui-library
Version:
A React component library for Air Command System with Storybook
20 lines (19 loc) • 638 B
TypeScript
import React from 'react';
import './Button.css';
export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'size'> {
/** The text to display inside the button */
label: string;
/** Visual style variant of the button */
variant?: 'primary' | 'danger' | 'cancel' | 'history';
/** Size of the button */
size?: 'sm' | 'md' | 'lg';
/** Whether the button is in a loading state */
loading?: boolean;
/** Custom CSS class name */
className?: string;
}
/**
* Primary UI component for user interaction
*/
declare const Button: React.FC<ButtonProps>;
export default Button;