From e13cb9bbb989415bc462989c1913d9a107b2e99e Mon Sep 17 00:00:00 2001 From: Clement Date: Tue, 21 May 2024 11:42:42 +0200 Subject: [PATCH] add imput composant --- front/src/components/Input.astro | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 front/src/components/Input.astro diff --git a/front/src/components/Input.astro b/front/src/components/Input.astro new file mode 100644 index 0000000..db17398 --- /dev/null +++ b/front/src/components/Input.astro @@ -0,0 +1,28 @@ +--- +import type { Input as Props } from 'types'; + +const { type, name, label, autocomplete, placeholder} = Astro.props; + +--- + +<> + { + name && ( +
+ {label && ( + + )} + +
+ ) + } +