stargaze-studio/components/forms/StyledInput.tsx

22 lines
534 B
TypeScript
Raw Normal View History

2022-07-13 13:56:36 +00:00
import clsx from 'clsx'
import type { ComponentProps } from 'react'
import { forwardRef } from 'react'
export const StyledInput = forwardRef<HTMLInputElement, ComponentProps<'input'>>(
function Input({ className, ...rest }, ref) {
return (
<input
className={clsx(
'bg-white/10 rounded border-2 border-white/20 form-input',
'placeholder:text-white/50',
'focus:ring focus:ring-plumbus-20',
className,
)}
ref={ref}
{...rest}
/>
)
},
//
)