Skip to main content

Textarea

Simple textarea input.

Value

Returns string

$value = fx_get_meta('id');

Example

'id' => [
'type' => 'textarea',
'className' => 'my-class-name',
'label' => 'Enter something below',
'placeholder' => '...',
'readOnly' => false,
'rows' => 5,
'title' => 'Description',
],

Props

className

Metabox class name

type: string

label

Optional label that appears next to the input, rather than ontop

type: string

placeholder

Placeholder text for the input

type: string

readOnly

Disable editing of the input

type: bool

defaultValue: false

rows

Textarea row count

type: number

defaultValue: 4

title

Metabox title

type: string