Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gluestack-ui/textarea

Package Overview
Dependencies
Maintainers
7
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gluestack-ui/textarea

A universal headless text-area component for React Native, Next.js & React

  • 0.1.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.9K
decreased by-80.93%
Maintainers
7
Weekly downloads
 
Created
Source

@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>
    <TextArea.Input placeholder="your text goes here..." />
  </TextArea>
);

More guides on how to get started are available here.

Keywords

FAQs

Package last updated on 09 Jun 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc