From eb488c38e601dcacf9e823aef364400649598c74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Weso=C5=82owski?= Date: Fri, 7 Jun 2024 13:26:32 +0200 Subject: [PATCH] add input max and min --- src/components/Input.astro | 5 +++-- src/pages/index.astro | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/Input.astro b/src/components/Input.astro index d41797c..45bc821 100644 --- a/src/components/Input.astro +++ b/src/components/Input.astro @@ -6,12 +6,13 @@ interface Props { type?: string; value?: string; background?: string; + extraAttributes?: Record; } -const { label, name, placeholder, type = 'text', value, background = 'bg-neutral-800' } = Astro.props; +const { label, name, placeholder, type = 'text', value, background = 'bg-neutral-800', extraAttributes = {} } = Astro.props; ---
{label && } - +
diff --git a/src/pages/index.astro b/src/pages/index.astro index 65ce43f..dde5fdb 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -99,10 +99,10 @@ const groupedGames = validGames.reduce((acc, game) => {
- +
- +