Skip to content

CFormTextarea row prop #293

@damir224

Description

@damir224

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions