From 5603e4ebefabeb1b9af8729b333b32aaf3b81d67 Mon Sep 17 00:00:00 2001 From: Harry Hogg Date: Sun, 16 Jun 2024 12:10:26 +0100 Subject: [PATCH] fix(InputLabel): Allow tag to be configurable --- workspaces/package/src/Input/InputLabel.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workspaces/package/src/Input/InputLabel.tsx b/workspaces/package/src/Input/InputLabel.tsx index e2821155..61648005 100644 --- a/workspaces/package/src/Input/InputLabel.tsx +++ b/workspaces/package/src/Input/InputLabel.tsx @@ -23,6 +23,7 @@ export const InputLabel = forwardRef((props, ref) => { description, label, paddingHorizontal = 'x3', + tag = 'label', ...rest } = props; @@ -37,7 +38,7 @@ export const InputLabel = forwardRef((props, ref) => { flex="vertical" gap="x2" ref={ref} - tag="label" + tag={tag} > {label && (