import * as React from 'react' import {cn} from '../../lib/utils' /** * A simple component for inputting text. * @publicDocs */ export interface InputDocProps { /** Ref to the input element (use instead of ref) */ innerRef?: React.Ref /** Input type (text, email, password, etc.) */ type?: string /** Placeholder text */ placeholder?: string /** Current value */ value?: string /** Change handler */ onChange?: React.ChangeEventHandler /** Whether the input is disabled */ disabled?: boolean } // using the default ref doesn't seem to set the parent's ref object when mounted // Since this is a shadCN component, we need to make sure to add back the innerRef prop, // whenever the component is updated. function Input({ innerRef, className, type, ...props }: React.ComponentProps<'input'> & {innerRef?: React.Ref}) { return ( ) } export {Input}