@leafygreen-ui/text-area
leafyGreen UI Kit Text Area
Last updated 5 days ago by brookescarlett .
Apache-2.0 · Original npm · Tarball · package.json
$ cnpm install @leafygreen-ui/text-area 
SYNC missed versions from official npm registry.

Text Area

npm (scoped)

View on Storybook

Installation

Yarn

yarn add @leafygreen-ui/text-area

NPM

npm install @leafygreen-ui/text-area

Example

import TextArea from '@leafygreen-ui/text-area';

const [value, setValue] = useState('');

return (
  <TextArea
    label="Text Area Label"
    description="This is the description for the text area"
    onChange={event => {
      /* Something to handle the change event */
    }}
    value={value}
  />
);

Output HTML

<div class="leafygreen-ui-1iyoj2o">
  <label for="textarea-4" class="leafygreen-ui-1x9zy2h">Text Area Label</label>
  <p class="leafygreen-ui-1e6871j">This is the description for the text area</p>
  <div class="leafygreen-ui-lzja97">
    <textarea
      data-leafygreen-ui="area-selector"
      title="Text Area Label"
      id="textarea-4"
      class="leafygreen-ui-10h8b92"
    ></textarea>
    <div class="leafygreen-ui-19os2r6"></div>
  </div>
</div>

Properties

Prop Type Description Default
id string id to describe the <textarea> element
darkMode boolean Determines whether or not the component will appear in dark mode. false
optional boolean Determines whether or not the <textarea> is optional true
label string Label for <textarea>
description string Description below label
state 'none', 'valid', 'error' Determines the state of the <textarea> 'none'
className string className applied to the container element
disabled boolean Determines if the component is disabled false

Current Tags

  • 3.0.3                                ...           latest (5 days ago)

7 Versions

  • 3.0.3                                ...           5 days ago
  • 3.0.2                                ...           a month ago
  • 3.0.1                                ...           2 months ago
  • 3.0.0                                ...           2 months ago
  • 2.0.0                                ...           2 months ago
  • 1.0.1                                ...           2 months ago
  • 1.0.0                                ...           3 months ago
Downloads
Today 0
This Week 0
This Month 9
Last Day 0
Last Week 9
Last Month 40
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |