textarea

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package textarea provides textarea components for multi-line text input.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Textarea

func Textarea(opts ...Option) g.Node

Textarea creates a textarea field

Types

type Option

type Option func(*Props)

func Disabled

func Disabled() Option

func Required

func Required() Option

func WithAttrs

func WithAttrs(attrs ...g.Node) Option

func WithClass

func WithClass(class string) Option

func WithID

func WithID(id string) Option

func WithName

func WithName(name string) Option

func WithPlaceholder

func WithPlaceholder(placeholder string) Option

func WithRows

func WithRows(rows int) Option

func WithValue

func WithValue(value string) Option

type Props

type Props struct {
	Name        string
	ID          string
	Placeholder string
	Value       string
	Rows        int
	Required    bool
	Disabled    bool
	Class       string
	Attrs       []g.Node
}

Jump to

Keyboard shortcuts

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