From 26c262f50f22ef872645491b2152f4aff52e8888 Mon Sep 17 00:00:00 2001 From: Christophe Carvalho Vilas-Boas Date: Thu, 13 Jul 2023 18:56:29 +0200 Subject: [PATCH] feat: SubNavHeader searchPlaceholder prop --- packages/strapi-design-system/src/v2/SubNav/SubNavHeader.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/strapi-design-system/src/v2/SubNav/SubNavHeader.tsx b/packages/strapi-design-system/src/v2/SubNav/SubNavHeader.tsx index 9d13b6460..73505feb7 100644 --- a/packages/strapi-design-system/src/v2/SubNav/SubNavHeader.tsx +++ b/packages/strapi-design-system/src/v2/SubNav/SubNavHeader.tsx @@ -26,6 +26,7 @@ export interface SubNavHeaderProps { onClear?: React.MouseEventHandler; onSubmit?: React.FormEventHandler; searchLabel?: string; + searchPlaceholder?: string; searchable?: boolean; value?: string; } @@ -34,6 +35,7 @@ export const SubNavHeader = ({ as = 'h2', label, searchLabel = '', + searchPlaceholder = '', searchable = false, onChange = () => {}, value = '', @@ -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}