@pikas-ui/textarea

This package contains a textarea component that can be used in your application.

Change Log

Requirements

To use this package, you must install the @pikas-ui/styles package.

Installation

You can install this package using npm, yarn, or pnpm.

npm install @pikas-ui/textarea
yarn add @pikas-ui/textarea
pnpm add @pikas-ui/textarea

Usage

Textarea

With the Textarea component, you can create a textarea.

*

Eu est labore ea laborum laborum mollit non minim eu commodo.

import { Textarea } from '@pikas-ui/textarea';

const Example: React.FC = () => {
  return (
    <Textarea
      label="Textarea label"
      description="Eu est labore ea laborum laborum mollit non minim eu commodo."
      required
      height={200}
    />
  );
};

Props

Props extends TextareaHTMLAttributes<HTMLTextAreaElement>

PropDescriptionTypeDefault
labelThe label of the textarea.string or ReactNode-
boxShadowThe box shadow of the textarea.PikasShadow"inner-md"
borderRadiusThe border radius of the textarea.PikasRadius"md"
paddingThe padding of the textarea.TextareaPadding"md"
fontSizeThe font size of the textarea.PikasFontSize"em-base"
colorNameThe color of the textarea.PikasColors-
colorHexThe color hex of the textarea.string-
placeholderColorNameThe placeholder color of the textarea.PikasColors"black-light"
placeholderColorHexThe placeholder color hex of the textarea.string-
borderColorNameThe border color of the textarea.PikasColors"transparent"
borderColorHexThe border color hex of the textarea.string-
borderWidthThe border width of the textarea.number0
textErrorThe error text of the textarea.string-
cssThe css of the textarea.TextareaCSS-
outlineThe outline of the textarea.booleantrue
resizeThe resize of the textarea.TextareaResize"none"
descriptionThe description of the textarea.string-
widthThe width of the textarea.string or number"100%"
minWidthThe min width of the textarea.string or number-
maxWidthThe max width of the textarea.string or number"100%"
heightThe height of the textarea.string or number300px
minHeightThe min height of the textarea.string or number-
maxHeightThe max height of the textarea.string or number-
requiredThe required of the textarea.booleanfalse
infoAdd a info icon with a tooltip.string-
dataThe data of the textarea.DOMStringMap-

Contributing

This documentation can be edited on GitHub here