Textarea

Description

The Textarea component is a customizable multiline text input field. It supports various styles, sizes, and themes to fit different design requirements. Built using class-variance-authority, it allows easy customization while maintaining consistency.

Usage


import { Input } from "mogora-ui";
  
export default function TextareaDemo() {
  return (
    <div>
      <Textarea placeholder="goncang" variant={"bordered"} theme={"primary"} className="w-sm" />
    </div>
  )
}
  
Themes
Variants

API Reference

Textarea

A customizable multiline text input field.

PropTypeDescription
variant"bordered" | "underline"Determines the styling variant of the textarea.
size"small" | "normal" | "large"Defines the size of the textarea.
theme"primary" | "secondary" | "danger" | "warning" | "success" | "info" | "accent"Sets the focus color theme.
placeholderstringPlaceholder text displayed when the textarea is empty.
classNamestringAdditional custom classes for styling.