@hirebus/academy
Version:
React component library for academy and learning platforms
22 lines (20 loc) • 665 B
TypeScript
import { ComponentPropsWithoutRef } from 'react';
export interface SelectWithLabelProps extends ComponentPropsWithoutRef<'div'> {
label: string;
options: Array<{
value: string;
label: string;
}>;
onValueChange: (value: string) => void;
value?: string;
defaultValue?: string;
placeholder?: string;
name?: string;
className?: string;
selectClassName?: string;
labelClassName?: string;
required?: boolean;
error?: string;
disabled?: boolean;
}
export declare const SelectWithLabel: import('react').ForwardRefExoticComponent<SelectWithLabelProps & import('react').RefAttributes<HTMLDivElement>>;