Skip to content

Commit

Permalink
feat: SubNavHeader searchPlaceholder prop
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopheCVB committed Jul 13, 2023
1 parent 3ad7300 commit 26c262f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/strapi-design-system/src/v2/SubNav/SubNavHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export interface SubNavHeaderProps {
onClear?: React.MouseEventHandler<HTMLInputElement>;
onSubmit?: React.FormEventHandler<HTMLInputElement>;
searchLabel?: string;
searchPlaceholder?: string;
searchable?: boolean;
value?: string;
}
Expand All @@ -34,6 +35,7 @@ export const SubNavHeader = ({
as = 'h2',
label,
searchLabel = '',
searchPlaceholder = '',
searchable = false,
onChange = () => {},
value = '',
Expand Down Expand Up @@ -85,7 +87,7 @@ export const SubNavHeader = ({
name="searchbar"
value={value}
onChange={onChange}
placeholder="e.g: strapi-plugin-abcd"
placeholder={searchPlaceholder}
onKeyDown={handleKeyDown}
ref={searchRef}
onBlur={handleBlur}
Expand Down

0 comments on commit 26c262f

Please sign in to comment.