northants-design-system
Version:
Design system for West & North Northamptonshire Councils, two unitary councils encompassing Wellingborough, Corby, Daventry, East Northants, Kettering, Northampton, Northamptonshire County and South Northants.
45 lines (44 loc) • 949 B
TypeScript
export interface TextareaProps {
/**
* The placeholder text for the input
*/
placeholder?: string;
/**
* The name of the input
*/
isErrored?: boolean;
/**
* An optional string to explain the error
*/
errorText?: string;
/**
* The name of the input
*/
name: string;
/**
* The max length attribute
*/
maxLength?: number;
/**
* Optional default value.
* Don't set both defaultValue and value.
*/
defaultValue?: string | number;
/**
* An optional function to be called on change
*/
onChange?: React.ReactNode | ((e: any) => void);
/**
* The optional input id
*/
id?: string;
/**
* The optional value for a controlled component.
* Don't set both defaultValue and value.
*/
value?: string | number;
/**
* Should the input be full width?
*/
isFullWidth?: boolean;
}