diff --git a/src/components/Search/Search.stories.tsx b/src/components/Search/Search.stories.tsx index 6e86979ba5..0ec395e381 100644 --- a/src/components/Search/Search.stories.tsx +++ b/src/components/Search/Search.stories.tsx @@ -7,7 +7,7 @@ export default { info: ` USWDS 2.0 Search component -Source: https://designsystem.digital.gov/components/header/ +Source: https://designsystem.digital.gov/components/search/ `, }, } diff --git a/src/components/Search/Search.tsx b/src/components/Search/Search.tsx index 55b5171eaa..93c13f64b7 100644 --- a/src/components/Search/Search.tsx +++ b/src/components/Search/Search.tsx @@ -8,6 +8,8 @@ import { TextInput } from '../forms/TextInput/TextInput' interface SearchInputProps { onSubmit: (event: React.FormEvent) => void + inputId?: string + inputName?: string big?: boolean small?: boolean label?: React.ReactNode @@ -19,6 +21,8 @@ export const Search = ( ): React.ReactElement => { const { onSubmit, + inputId = 'search-field', + inputName = 'search', big, small, label = 'Search', @@ -41,10 +45,10 @@ export const Search = ( role="search" search={true} {...formProps}> -