🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@isoftdata/svelte-textarea

Package Overview
Dependencies
Maintainers
11
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@isoftdata/svelte-textarea

## Install

npmnpm
Version
1.1.1
Version published
Weekly downloads
35
12.9%
Maintainers
11
Weekly downloads
 
Created
Source

Svelte Textarea

Install

npm i @isoftdata/svelte-textarea

Props

NameTypeDescriptionDefault
classstringThe class name(s) to add to the textarea.undefined
hintstring | nullHint text to be displayed as part of the labelnull
hintClassstringThe class name(s) to add to the hint text.undefined
hintClickablebooleanWhether the hint is clickable or not.false
idstringThe unique identifier .uuid()
isLoadingbooleanWhether the component is in a loading state or not.false
labelstring | nullThe label text for the component.null
labelClassstringThe class name(s) to add to the label element.undefined
labelParentClassstringThe class name(s) to add to the label's parent.undefined
requiredbooleanWhether the field is required or not.false
selectOnFocusbooleanWhether to select the text on focus or not.false
showLabelbooleanWhether to show the label.true
textEllipsisbooleanWhether to show ellipsis for overflowing label texr.false
titlestringThe title text for the component.undefined
valuestringThe value of the component.None (Required)

Slots

  • append - Any content you want to append to the input.
  • prepend - Any content you want to prepend to the input.

Events

The following events are forwarded:

  • blur
  • change
  • click
  • focus
  • hintClick (from Label component)
  • input
  • keyup

Example

	<div class="row">
		<div class="col-3">
			<TextArea
				label="Two Way"
				bind
			/>
			{value}
		</div>
		<div class="col-3">
			<TextArea
				label="One Way / on:change"
				value={value2}
				on:change={changeHandler}
			/>
			{value2}
		</div>
	</div>

FAQs

Package last updated on 12 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts