air-command-ui-library
Version:
A React component library for Air Command System with Storybook
15 lines (14 loc) • 459 B
TypeScript
import React from 'react';
export type Theme = 'light' | 'dark';
export type InputType = 'text' | 'email' | 'password' | 'number' | 'search' | 'tel' | 'url';
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
theme?: Theme;
type?: InputType;
placeholder?: string;
label?: string;
disabled?: boolean;
error?: boolean;
errorMessage?: string;
width?: string;
className?: string;
}