textarea

package
v0.0.39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

templ: version: v0.3.977

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Textarea

func Textarea(props ...Props) templ.Component

Types

type Props

type Props struct {
	ID          string
	Class       string
	Attributes  templ.Attributes
	Variant     Variant
	Size        Size
	Placeholder string
	Name        string
	Disabled    bool
}

type Size

type Size string
const (
	SizeDefault Size = ""
	SizeXs      Size = "textarea-xs"
	SizeSm      Size = "textarea-sm"
	SizeMd      Size = "textarea-md"
	SizeLg      Size = "textarea-lg"
	SizeXl      Size = "textarea-xl"
)

type Variant

type Variant string
const (
	VariantDefault   Variant = ""
	VariantGhost     Variant = "textarea-ghost"
	VariantPrimary   Variant = "textarea-primary"
	VariantSecondary Variant = "textarea-secondary"
	VariantAccent    Variant = "textarea-accent"
	VariantNeutral   Variant = "textarea-neutral"
	VariantSuccess   Variant = "textarea-success"
	VariantWarning   Variant = "textarea-warning"
	VariantInfo      Variant = "textarea-info"
	VariantError     Variant = "textarea-error"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL