mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Register auth flow
This commit is contained in:
parent
2db1dd640d
commit
161c44924e
6 changed files with 293 additions and 81 deletions
15
src/components/form/Input.tsx
Normal file
15
src/components/form/Input.tsx
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import type { ComponentProps, PropsWithChildren } from 'react'
|
||||
import clsx from 'clsx'
|
||||
|
||||
export default function Input(props: PropsWithChildren<ComponentProps<'input'>>) {
|
||||
const { name, className, children, ...attrs } = props
|
||||
|
||||
return (
|
||||
<div className='flex flex-col'>
|
||||
<label htmlFor={name} className='font-medium text-black'>
|
||||
{children}:
|
||||
</label>
|
||||
<input {...attrs} name={name} className={clsx('bg-zinc-200 rounded p-2 mt-2 mb-3 text-black', className)} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue