Textarea
Props
Prop | Type | Default/Notes |
---|
@input | Func() | Handle event emitted from the component, ex: @input={funcName} |
@change | Func() | Handle event emitted from the component, ex: @change={funcName} |
value | String/Number | Default: undefined |
placeholder | String | Default: undefined |
rows | Number | Default: 2 ; Number of rows to display (textarea height) |
disabled | Boolean | Default: false |
Example usage
<template>
<Textarea placeholder="Placeholder" v-model="txtModel" />
</template>
<script>
import { Textarea } from 'figma-plugin-ds-vue'
export default {
data: () => ({
txtModel:
}),
components: {
Textarea
}
}
</script>