Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

104
Views
ChakraUI with Typescript. Problem with cols and rows

I have already created react project and I integrated with Chakra using

npm i @chakra-ui/react @emotion/react@^11 @emotion/styled@^11 framer-motion@^5

Then I used Textarea component from this library and it is said that cols and rows must ba a number. I did workaround, defining new variables. But is it as should be? Cols and rows has to be number and I can not write inline style like cols="20"?.

const COLS = 20
const ROWS = 20


const RecipeForm = () => {
    return (
        <React.Fragment>
            <Navbar />
            <Center width="100%" height="95vh">
                <Flex justifyContent="center" alignItems="center" width="50vw">
                    <FormControl textAlign="center">
                        <Input placeholder="Name for your recipe" />
                        <SelectType />
                        <Textarea placeholder="Description" cols={COLS} rows={ROWS} resize="none" />
                        <Button type="submit">Submit</Button>
                    </FormControl>
                </Flex>
            </Center>
        </React.Fragment>
        
    )
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!