mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
This commit is contained in:
parent
bd01b2351c
commit
afce2ebac6
1 changed files with 9 additions and 2 deletions
|
|
@ -54,14 +54,21 @@ export function InputArea(props: CustomInputProps & Omit<ComponentProps<'textare
|
|||
}
|
||||
|
||||
export function InputSelect(props: CustomInputProps & ComponentProps<'select'>) {
|
||||
const { name, className, dark = false, label, ...attrs } = props
|
||||
const { name, className, dark = false, label, children, ...attrs } = props
|
||||
|
||||
return (
|
||||
<div className='flex flex-col'>
|
||||
<InputLabel dark={dark} name={name}>
|
||||
{label}
|
||||
</InputLabel>
|
||||
<select name={name} className='bg-zinc-200 rounded-md p-2 mt-2 h-full mb-3 text-black' {...attrs} />
|
||||
<select
|
||||
autoComplete='off'
|
||||
name={name}
|
||||
className='bg-zinc-200 rounded-md p-2 mt-2 h-full mb-3 text-black'
|
||||
{...attrs}
|
||||
>
|
||||
{children}
|
||||
</select>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue