diff --git a/src/components/global/Input.astro b/src/components/global/Input.astro index 4908876..10f941a 100644 --- a/src/components/global/Input.astro +++ b/src/components/global/Input.astro @@ -52,7 +52,7 @@ if (baseProps.type === 'textarea') { @apply px-4 w-full bg-gray-100 rounded-lg border-gray-200 min-h-0 border flex items-center gap-2 py-2 text-black } .input textarea, .input input { - @apply bg-transparent outline-none invalid:border-red-300 placeholder:text-gray-400 placeholder:font-light focus-visible:outline-none + @apply bg-transparent outline-none invalid:border-red-300 placeholder:text-gray-400 placeholder:font-light focus-visible:outline-none m-0 p-0 border-0 } .textarea { @apply overflow-y-hidden diff --git a/src/components/global/Select.astro b/src/components/global/Select/index.astro similarity index 53% rename from src/components/global/Select.astro rename to src/components/global/Select/index.astro index b677af3..bf548b6 100644 --- a/src/components/global/Select.astro +++ b/src/components/global/Select/index.astro @@ -7,14 +7,16 @@ export interface Props extends Omit { block?: boolean suffix?: string prefix?: string + multiple?: boolean options: Array } const baseProps = objectOmit(Astro.props, 'label', 'block', 'suffix', 'prefix', 'options') +const values = Array.isArray(Astro.props.value) ? Astro.props.value : (Astro.props.value?.toString()?.split(',') ?? []) --- -