From 25c12df0143cba131862ca97bcf7684ec37f9df2 Mon Sep 17 00:00:00 2001 From: Martin Johannes Nilsen <37147119+Martinnilsen99@users.noreply.github.com> Date: Mon, 29 Mar 2021 14:39:26 +0200 Subject: [PATCH] Support for autoFocus attribute in typescript Based on issue #95 Fixes typescript support for the autoFocus attribute --- src/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.d.ts b/src/index.d.ts index 8fb7135..f51bb5a 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -64,6 +64,10 @@ declare module 'material-ui-search-bar' { * The value of the text field. */ value?: string; + /** + * Whether to focus SearchBar on render. + */ + autoFocus?: boolean; } const SearchBar: React.ComponentType;