air-command-ui-library
Version:
A React component library for Air Command System with Storybook
16 lines (15 loc) • 506 B
TypeScript
import React from 'react';
export type ColorVariant = 'primary' | 'danger' | 'warning' | 'white' | 'black' | 'cancel';
export type Size = 'xs' | 'sm' | 'md' | 'lg';
export type Theme = 'light' | 'dark';
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
color?: ColorVariant;
size?: Size;
width?: string;
outline?: boolean;
theme?: Theme;
icon?: React.ReactNode;
iconOnly?: boolean;
children?: React.ReactNode;
'aria-label'?: string;
}