diff --git a/components/webui/client/src/components/InputLabel/index.module.css b/components/webui/client/src/components/InputLabel/index.module.css
new file mode 100644
index 0000000000..0df437c7ed
--- /dev/null
+++ b/components/webui/client/src/components/InputLabel/index.module.css
@@ -0,0 +1,11 @@
+.label {
+ height: 100%;
+ display: flex;
+ padding-left: 10px;
+ padding-right: 10px;
+ align-items: center;
+ justify-content: center;
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
+ white-space: nowrap;
+}
diff --git a/components/webui/client/src/pages/SearchPage/SearchControls/Dataset/DatasetLabel/index.tsx b/components/webui/client/src/components/InputLabel/index.tsx
similarity index 53%
rename from components/webui/client/src/pages/SearchPage/SearchControls/Dataset/DatasetLabel/index.tsx
rename to components/webui/client/src/components/InputLabel/index.tsx
index 0893fe5265..3c65678ef5 100644
--- a/components/webui/client/src/pages/SearchPage/SearchControls/Dataset/DatasetLabel/index.tsx
+++ b/components/webui/client/src/components/InputLabel/index.tsx
@@ -9,27 +9,28 @@ import styles from "./index.module.css";
const {Text} = Typography;
/**
- * Renders a label for the dataset selector.
+ * Renders a label for an input field.
*
+ * @param props
+ * @param props.children The label text to display.
* @return
*/
-const DatasetLabel = () => {
+const InputLabel = ({children}: {children: React.ReactNode}) => {
const {token} = theme.useToken();
return (
- Dataset
+ {children}
);
};
-export default DatasetLabel;
+export default InputLabel;
diff --git a/components/webui/client/src/components/QueryBox/InputWithCaseSensitive/CaseSenstiveToggle.tsx b/components/webui/client/src/components/QueryBox/InputWithCaseSensitive/CaseSenstiveToggle.tsx
index 12fe4266d6..07f42664ea 100644
--- a/components/webui/client/src/components/QueryBox/InputWithCaseSensitive/CaseSenstiveToggle.tsx
+++ b/components/webui/client/src/components/QueryBox/InputWithCaseSensitive/CaseSenstiveToggle.tsx
@@ -6,6 +6,8 @@ import {
Tooltip,
} from "antd";
+import styles from "./index.module.css";
+
interface CaseSensitiveToggleProps {
disabled: boolean;
@@ -51,6 +53,7 @@ const CaseSensitiveToggle = ({
title={"Match case"}
>