react-select: Allow placeholder to be an Element (#9061)

This commit is contained in:
Greg O'Connor
2016-04-23 07:35:52 -07:00
committed by Masahiro Wakame
parent 458feddf12
commit ed728ac598

View File

@@ -173,7 +173,7 @@ declare namespace ReactSelect {
* field placeholder, displayed when there's no value
* @default "Select..."
*/
placeholder?: string;
placeholder?: string | __React.ReactElement<any>;
/**
* whether to enable searching feature or not
* @default true;