From 7bccd3405d9ff532834e4928c0dc52e943d2f99f Mon Sep 17 00:00:00 2001 From: Micha Date: Thu, 12 Jun 2025 13:25:13 +0200 Subject: [PATCH] feat(labeled-input): add Big labeled input field --- src/components/custom-ui/labeled-input.tsx | 11 ++++++++--- src/components/ui/input.tsx | 4 ++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/components/custom-ui/labeled-input.tsx b/src/components/custom-ui/labeled-input.tsx index dc5cf13..4f06b5d 100644 --- a/src/components/custom-ui/labeled-input.tsx +++ b/src/components/custom-ui/labeled-input.tsx @@ -7,7 +7,7 @@ export default function LabeledInput({ placeholder, value, name, - big = false, // Add a prop for the bigger variant, default is false + size = 'default', autocomplete, error, ...rest @@ -17,14 +17,14 @@ export default function LabeledInput({ placeholder?: string; value?: string; name?: string; - big?: boolean; // Optional prop for bigger input + size?: 'default' | 'big' | 'textarea'; autocomplete?: string; error?: string; } & React.InputHTMLAttributes) { return (
- {big ? ( + {size === 'textarea' ? (