Type AliasSearchBarProps

SearchBarProps: {
    isFullWidth?: boolean;
    onSearch: ((searchQuery: string) => void);
    placeholder?: string;
}

Type declaration

  • OptionalisFullWidth?: boolean

    Optional boolean to set the input base to full width

  • onSearch: ((searchQuery: string) => void)

    Callback fired to handle the search query when button pressed

      • (searchQuery): void
      • Parameters

        • searchQuery: string

        Returns void

  • Optionalplaceholder?: string

    Optional string that appears in the search bar without a search string