wix-playground / stylable-components

Fully-tested & strictly-typed component library based on React, using optional Wix styling.
MIT License
35 stars 3 forks source link

How to document common form input props? #467

Open JoMarton opened 7 years ago

JoMarton commented 7 years ago
export interface FormInputProps<T, S = T> {
    value?: T;
    onChange?: (event: ChangeEvent<T>) => void;
    onInput?: (event: ChangeEvent<S>) => void;
    autoFocus?: boolean;
    disabled?: boolean;
    name?: string;
    readOnly?: boolean;
    required?: boolean;
    tabIndex?: number;
}