@gluestack-ui/textarea
TypeScript icon, indicating that this package has built-in type declarations

0.1.25 • Public • Published

@gluestack-style/textarea

Installation

To use @gluestack-ui/textarea, all you need to do is install the @gluestack-ui/textarea package:

$ yarn add @gluestack-ui/textarea

# or

$ npm i @gluestack-ui/textarea

Usage

The Textarea component is designed to accommodate larger amounts of text input. It allows multi-line input and can be easily customized to fit the user's needs. Here's an example how to use this package to create one:

import { Root, Input } from '../components/core/text-area/styled-components';
import { createTextarea } from '@gluestack-ui/textarea';
const Textarea = createTextarea({
  Root,
  Input,
});

Customizing the textarea:

Default styling of all these components can be found in the components/core/textarea file. For reference, you can view the source code of the styled textarea components.

// import the styles
import { Root, Input } from '../components/core/text-area/styled-components';

// import the createTextarea function
import { createTextarea } from '@gluestack-ui/textarea';

// Understanding the API
const Textarea = createTextarea({
  Root,
  Input,
});

// Using the textarea component
export default () => (
  <Textarea>
    <TextareaInput placeholder="your text goes here..." />
  </Textarea>
);

More guides on how to get started are available here.

Package Sidebar

Install

npm i @gluestack-ui/textarea

Weekly Downloads

28,570

Version

0.1.25

License

none

Unpacked Size

19.8 kB

Total Files

17

Last publish

Collaborators

  • vidhi499
  • rohit_singh
  • viraj-10
  • rayan1810
  • rajat693
  • surajahmedc
  • meenumakkar
  • madhavb230100
  • vaibhk002
  • daminipandey
  • amars29
  • geekgautam
  • sravankumarvelangi
  • gluestackadmin
  • geekashwini
  • mayankp06