We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd569c6 commit 6fc0a1aCopy full SHA for 6fc0a1a
src/SearchBar.tsx
@@ -23,6 +23,7 @@ export type SearchBarProps = {
23
big?: boolean;
24
classes?: Partial<Record<"root" | "label" | "input", string>>;
25
style?: CSSProperties;
26
+ onButtonClick?: React.MouseEventHandler<HTMLButtonElement>;
27
};
28
29
/**
@@ -37,6 +38,7 @@ export const SearchBar = memo(
37
38
big = false,
39
classes = {},
40
style,
41
+ onButtonClick,
42
...rest
43
} = props;
44
@@ -70,7 +72,7 @@ export const SearchBar = memo(
70
72
type="search"
71
73
id={inputId}
74
/>
- <button className="fr-btn" title="Rechercher">
75
+ <button className="fr-btn" title={label} onClick={onButtonClick}>
76
{label}
77
</button>
78
</div>
0 commit comments