Socket
Socket
Sign inDemoInstall

@chakra-ui/textarea

Package Overview
Dependencies
89
Maintainers
2
Versions
475
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @chakra-ui/textarea

Textarea React component for Chakra UI


Version published
Weekly downloads
548K
increased by2.74%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

Textarea

The Textarea component allows you to easily create multi-line text inputs.

Installation

yarn add @chakra-ui/textarea

Import component

import { Textarea } from "@chakra-ui/textarea"

Basic Usage

<Textarea defaultValue="This is a textarea" placeholder="A simple textarea" />

Disabled

Pass the isDisabled prop to put the textarea in the disabled state

<Textarea isDisabled placeholder="A disabled textarea" />

Invalid

Pass the isInvalid prop to put the textarea in the invalid state

<Textarea isInvalid placeholder="An invalid textarea" />

Sizes

Pass the size prop to change the size of the textarea

<>
  <Textarea
    size="sm"
    placeholder="A sample placeholder"
    defaultValue="This is a small textarea"
  />
  <Textarea
    placeholder="A sample placeholder"
    defaultValue="This is a default textarea"
  />
  <Textarea
    size="lg"
    placeholder="A sample placeholder"
    defaultValue="This is a large textarea"
  />
</>

Resize

Pass the resize prop to resize to textarea in the vertical or horizontal direction

<Textarea placeholder="Here is a sample placeholder" resize="horizontal" />

Keywords

FAQs

Last updated on 09 Nov 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc