Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

Commit

Permalink
Merge 50aeb38 into af34a67
Browse files Browse the repository at this point in the history
  • Loading branch information
pantharshit00 authored Oct 7, 2018
2 parents af34a67 + 50aeb38 commit 688ead6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"name": "material-ui-chip-input",
"version": "1.0.0-beta.7",
"typings": "typings/index.d.ts",
"description": "A chip input field using Material-UI.",
"main": "lib/ChipInput.js",
"files": [
"lib/**/*.js",
"typings/*.d.ts",
"README.md",
"LICENSE",
"demo.gif"
Expand Down
34 changes: 34 additions & 0 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import * as React from 'react';

interface Props {
allowDuplicates?: boolean;
blurBehavior?: 'clear' | 'add' | 'ignore';
chipRenderer?: (...args: any[]) => any;
clearInputValueOnChange?: boolean;
dataSource?: any[];
dataSourceConfig?: {
text: string;
value: string;
};
defaultValue?: any[];
disabled?: boolean;
FormHelperTextProps?: object;
fullWidth?: boolean;
fullWidthInput?: boolean;
helperText?: React.ReactNode;
InputLabelProps?: object;
InputProps?: object;
inputRef?: (...args: any[]) => any;
label?: React.ReactNode;
newChipKeyCodes?: number[];
onAdd?: (...args: any[]) => any;
onBeforeAdd?: (...args: any[]) => any;
onChange?: (...args: any[]) => any;
onDelete?: (...args: any[]) => any;
onUpdateInput?: (...args: any[]) => any;
placeholder?: string;
value?: any[];
}

declare const ChipInput: React.ComponentType<Props>;
export default ChipInput;

0 comments on commit 688ead6

Please sign in to comment.