1.0.3 • Published 4 months ago

@craydel-v3/craydel-textarea v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

CraydelTextarea

Installation

Get the latest version by NPM:

$ npm i @craydel-v3/craydel-textarea

Component Import

Import the module chosen directly in your component

<script>
  import CraydelTextarea from "@craydel-v3/craydel-textarea/src/CraydelTextarea.vue";

  export default {
  components: {CraydelTextarea}
}
</script>

Props

NameTypeDefaultDescription
idstringrandom IDSets the DOM id on the component.
placeholderstring'Select'Sets the component's placeholder text.
is-requiredbooleanfalsePuts component in a required state.
required-errorstring'Field is required'Puts the component in an error state and passes through the custom required error message.
max-lengthnumber100The maximum number of characters allowed in the field.
disabledbooleanfalseDisables the component.
loadingboolean | stringfalseDisplays linear progress bar. Can either be a String which specifies which color is applied to the progress bar (any material color or theme color - primary, secondary, success, info, warning, error) or a Boolean which uses the primary color.
counterboolean | number | stringfalseCreates counter for input length; if no number is specified, it defaults to the max-length value.

Events

NameDescription
blurEmitted when the input is focused or blurred.
changeEmitted when the input is changed by user interaction.

Usage

An example showing a textarea with a counter.

<craydel-textarea counter="500"></craydel-textarea>
1.0.3

4 months ago

1.0.2

5 months ago

1.0.1

6 months ago

1.0.0

7 months ago