Textarea Components

Examples

<script>
import { Textarea } from 'flowbite-svelte'
let textareaprops = {
  id: 'message',
  name: 'message',
  label: 'Your message',
  rows: 4,
  placeholder: 'Leave a comment...',
};
</script>

<Textarea {...textareaprops} />

Props

The component has the following props, type, and default values. See type-list page for type information.

Name Type Default
value string ''
id string generateId()
name string 'message'
label string 'Your message'
rows number 4
ref HTMLElement null
placeholder string 'Leave a comment...'
labelClass string 'block mb-2 text-sm font-medium text-gray-900 dark:text-gray-400'
textareaClass string
helper string ''
helperClass string 'mt-2 text-sm text-gray-500 dark:text-gray-400'

Checkbox

File input

Floating label

Input

Radio

Range

Search

Select

Textarea

Toggle

References

Flowbite Forms