-
-
Notifications
You must be signed in to change notification settings - Fork 273
Closed
Description
Hello, CoreUi team,
in documentation it is clear that it is possible to use rows
prop for CFormTextarea
component.
But ts have these error
Type '{ rows: string; }' is not assignable to type 'IntrinsicAttributes & CFormTextareaProps & RefAttributes<HTMLTextAreaElement>'.
Property 'rows' does not exist on type 'IntrinsicAttributes & CFormTextareaProps & RefAttributes<HTMLTextAreaElement>'.ts(2322)
I use
"@coreui/coreui-pro": "^4.2.0-beta.2",
"react": "^17.0.2",
and in component
import React, { FC } from 'react';
import { CFormTextarea } from '@coreui/react-pro';
type FormTextAreaPropsType = {
rows: string;
};
const FormTextArea: FC<FormTextAreaPropsType> = ({ rows = '2' }) => <CFormTextarea rows={rows} />;
export default FormTextArea;
Metadata
Metadata
Assignees
Labels
No labels