@hirebus/academy
Version:
React component library for academy and learning platforms
17 lines (15 loc) • 542 B
TypeScript
import { ComponentPropsWithoutRef } from 'react';
type InputType = 'input' | 'textarea';
export interface InputWithLabelProps extends ComponentPropsWithoutRef<'div'> {
label: string;
type?: InputType;
name: string;
placeholder?: string;
className?: string;
inputClassName?: string;
labelClassName?: string;
required?: boolean;
error?: string;
}
export declare const InputWithLabel: import('react').ForwardRefExoticComponent<InputWithLabelProps & import('react').RefAttributes<HTMLDivElement>>;
export {};