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 |
border | Boolean | Default: false ; Force border around input field. Border usually appears when element is hovered, active or focused. A set placeholder also forces a border |
disabled | Boolean | Default: false |
icon | String | See Icon component for usage |
iconText | String | See Icon component for usage |
spinning | Boolean | See Icon component for usage |
Example usage
<template>
<Input icon="heart" placeholder="Placeholder" v-model="inputModel" />
</template>
<script>
import { Input } from 'figma-plugin-ds-vue'
export default {
data: () => ({
inputModel:
}),
components: {
Input
}
}
</script>